diff options
author | nico <nico@magicbroccoli.de> | 2018-10-19 02:29:28 +0200 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-10-19 02:29:28 +0200 |
commit | 57b12f886a6ff132b11eea86a33af4a6b1e579f8 (patch) | |
tree | 30c7ef18141dc774c4b66effd56872ed83498ec7 | |
parent | 8211c0809f64cce4ccea7e44b501c524aea51980 (diff) |
* finally fixed double negative
-rwxr-xr-x | teamspeak-multi.py | 8 |
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) |