diff options
author | nico <nico@magicbroccoli.de> | 2018-10-19 03:57:48 +0200 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-10-19 03:57:48 +0200 |
commit | 3b0e31753d6ab1a659ce0cc18b7be455345d5aeb (patch) | |
tree | 30c7ef18141dc774c4b66effd56872ed83498ec7 /teamspeak-multi.py | |
parent | 8211c0809f64cce4ccea7e44b501c524aea51980 (diff) | |
parent | 57b12f886a6ff132b11eea86a33af4a6b1e579f8 (diff) |
Merge branch 'dev'
Diffstat (limited to 'teamspeak-multi.py')
-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) |