mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-05 22:55:17 +01:00
check_eva new Make sure --timeout is an integer
This commit is contained in:
@@ -132,7 +132,7 @@ while len(arguments) > 0:
|
|||||||
elif arg == '-T' or arg == '--test':
|
elif arg == '-T' or arg == '--test':
|
||||||
testmode = 1
|
testmode = 1
|
||||||
elif arg == '--timeout':
|
elif arg == '--timeout':
|
||||||
timeout = arguments.pop(0)
|
timeout = int(arguments.pop(0))
|
||||||
elif arg == '--path':
|
elif arg == '--path':
|
||||||
path = arguments.pop(0) + '/'
|
path = arguments.pop(0) + '/'
|
||||||
elif arg == '-M' or arg == '--mode':
|
elif arg == '-M' or arg == '--mode':
|
||||||
|
|||||||
Reference in New Issue
Block a user