1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

kea: fix autoconf, it always returned "yes"

I changed read_data's return value after testing autoconf. Oops...
This commit is contained in:
Kim B. Heino 2023-12-04 15:51:25 +02:00
parent 8e235bd7a3
commit 295325eb80

View file

@ -186,7 +186,7 @@ def fetch(data):
if __name__ == '__main__':
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':
config(read_data())
else: