mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 10:52:18 +01:00
Modify ykval-munin-vallatency plugin.
- don't auto configure if running a single node cluster. (i.e. no other servers to sync to).
This commit is contained in:
parent
f2604e751a
commit
cf40fec026
@ -51,7 +51,13 @@ foreach($shortnames as $val)
|
||||
|
||||
if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
|
||||
{
|
||||
print "yes\n";
|
||||
if (is_array($urls) && count($urls) > 0)
|
||||
{
|
||||
print "yes\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
print "no (sync pool not configured)\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user