Commit 6506255c by Stéphane Graber

lxc-start-ephemeral: Exit with command return code

When using lxc-start-ephemeral to directly call a command, return ssh's return code (the command's return code) when exiting. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 9737a206
...@@ -286,3 +286,5 @@ for ip in ips: ...@@ -286,3 +286,5 @@ for ip in ips:
# Shutdown the container # Shutdown the container
dest.shutdown(timeout=5) dest.shutdown(timeout=5)
sys.exit(retval)
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