Consider starting state as OK

This commit is contained in:
Mike Gerber 2016-12-10 16:43:36 +01:00
parent 77c0cc85ec
commit ece5647c25

View file

@ -27,7 +27,7 @@ except subprocess.CalledProcessError as e:
print('System NOT OK: {}'.format(state))
sys.exit(2)
if state == 'running':
if state in ['running', 'starting']:
print('System OK: {}'.format(state))
sys.exit(0)
else: