aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2018-10-19 02:29:28 +0200
committernico <nico@magicbroccoli.de>2018-10-19 02:29:28 +0200
commit57b12f886a6ff132b11eea86a33af4a6b1e579f8 (patch)
tree30c7ef18141dc774c4b66effd56872ed83498ec7
parent8211c0809f64cce4ccea7e44b501c524aea51980 (diff)
* finally fixed double negative
-rwxr-xr-xteamspeak-multi.py8
1 files changed, 4 insertions, 4 deletions
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)