diff options
author | hagbard <vysodev@derith.de> | 2018-08-11 16:09:18 -0700 |
---|---|---|
committer | hagbard <vysodev@derith.de> | 2018-08-11 16:09:18 -0700 |
commit | a8312b64a2baf0d5c604a0850f7409b0505b36dc (patch) | |
tree | 6817341127bf7ee4c2183b59dcb3148f4eb47d7e /src/op_mode | |
parent | 1472afe76f525a38f8d3da98fa933f7b49ae10f0 (diff) | |
parent | f1720d121911ab14f4925dd9c1075e9d05c8bf79 (diff) | |
download | vyos-1x-a8312b64a2baf0d5c604a0850f7409b0505b36dc.tar.gz vyos-1x-a8312b64a2baf0d5c604a0850f7409b0505b36dc.zip |
Merge remote-tracking branch 'upstream/current' into current
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/vrrp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/op_mode/vrrp.py b/src/op_mode/vrrp.py index ba8b56de3..54e1bfb57 100755 --- a/src/op_mode/vrrp.py +++ b/src/op_mode/vrrp.py @@ -34,6 +34,7 @@ def print_summary(): json_data = vyos.keepalived.get_json_data() except: print("VRRP information is not available") + sys.exit(1) groups = [] for group in json_data: @@ -64,6 +65,7 @@ def print_statistics(): print(output) except: print("VRRP statistics are not available") + sys.exit(1) def print_state_data(): try: @@ -73,6 +75,7 @@ def print_state_data(): print(output) except: print("VRRP information is not available") + sys.exit(1) parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() |