From 57b12f886a6ff132b11eea86a33af4a6b1e579f8 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 19 Oct 2018 02:29:28 +0200 Subject: * finally fixed double negative --- teamspeak-multi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'teamspeak-multi.py') diff --git a/teamspeak-multi.py b/teamspeak-multi.py index 85cdae2..07cf730 100755 --- a/teamspeak-multi.py +++ b/teamspeak-multi.py @@ -156,14 +156,14 @@ class TeamspeakMulti: if os.environ.get('MUNIN_CAP_DIRTYCONFIG') == '1': self.run() elif sys.argv[1] == 'autoconf': - if None in {os.environ.get('username'), os.environ.get('password')}: - print('yes') - else: + if None in [os.environ.get('username'), os.environ.get('password')]: print('env variables are missing') + else: + print('yes') else: self.run() if __name__ == "__main__": TeamspeakMulti().main() - quit(0) + exit(0) -- cgit v1.2.3-54-g00ecf