mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-11-25 19:47:02 +00:00
Merge pull request #1400 from kimheino/master
kea: fix autoconf, it always returned "yes"
This commit is contained in:
commit
6c853b5a2e
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ def fetch(data):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == 'autoconf':
|
if len(sys.argv) > 1 and sys.argv[1] == 'autoconf':
|
||||||
print('yes' if read_data() else 'no (no Kea statistics)')
|
print('yes' if read_data()[0] else 'no (no Kea statistics)')
|
||||||
elif len(sys.argv) > 1 and sys.argv[1] == 'config':
|
elif len(sys.argv) > 1 and sys.argv[1] == 'config':
|
||||||
config(read_data())
|
config(read_data())
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue