Consider starting state as OK
This commit is contained in:
parent
77c0cc85ec
commit
ece5647c25
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ except subprocess.CalledProcessError as e:
|
||||||
print('System NOT OK: {}'.format(state))
|
print('System NOT OK: {}'.format(state))
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
if state == 'running':
|
if state in ['running', 'starting']:
|
||||||
print('System OK: {}'.format(state))
|
print('System OK: {}'.format(state))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue