Commit fb7fd1ba authored by Alexandre's avatar Alexandre
Browse files

Remove uncalled monitoring exit code

When using monitoring, the exit call is part of the print_result
function, making these last tests before exiting unnecessary
parent 731e6675
......@@ -1190,13 +1190,7 @@ for connectTo in ip_set:
conn.end()
if ok:
print('OK')
if not monitoring:
sys.exit(0)
else:
sys.exit(STATE_OK)
sys.exit(0)
else:
print('KO')
if not monitoring:
sys.exit(1)
else:
sys.exit(STATE_CRITICAL)
sys.exit(1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment