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
1 changed files with 1 additions and 1 deletions

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: