Commit a271ce36 authored by Mark Schouten's avatar Mark Schouten
Browse files

Exit after a rollback

parent 31bc0acc
......@@ -28,6 +28,7 @@ def rollback(cfg):
new = Config.Get(cfg)
Netlink.Commit(cur, new)
print("Rolled back to %s" % (cfg))
sys.exit(1)
if __name__ == '__main__':
args = docopt(__doc__)
......@@ -94,4 +95,4 @@ if __name__ == '__main__':
else:
rollback(rollbackcfg)
except KeyboardInterrupt:
rollback(rollbackcfg)
\ No newline at end of file
rollback(rollbackcfg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment