Add a default returncode
This commit is contained in:
parent
20ff95c0fe
commit
10a8fab4b7
@ -118,9 +118,10 @@ def main():
|
||||
|
||||
if args.mode == 'shell':
|
||||
returncode = ioping_output_shell()
|
||||
|
||||
elif args.mode == 'telegraf':
|
||||
returncode = ioping_output_telegraf()
|
||||
else:
|
||||
returncode = 1
|
||||
|
||||
return returncode
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user