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