fix rc
This commit is contained in:
parent
40380b67e0
commit
8d1db6218b
|
@ -939,6 +939,7 @@ def perform_checks(raw_args):
|
||||||
containers = get_containers(args.containers, args.present)
|
containers = get_containers(args.containers, args.present)
|
||||||
except URLError as e:
|
except URLError as e:
|
||||||
critical(f'Failed to connect to daemon: {e.reason}.')
|
critical(f'Failed to connect to daemon: {e.reason}.')
|
||||||
|
exit(rc)
|
||||||
|
|
||||||
if len(containers) == 0 and not args.present:
|
if len(containers) == 0 and not args.present:
|
||||||
unknown("No containers names found matching criteria")
|
unknown("No containers names found matching criteria")
|
||||||
|
|
Loading…
Reference in New Issue