]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-start-ephemeral: Exit with command return code
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Sep 2012 14:04:57 +0000 (10:04 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 12 Nov 2012 18:18:32 +0000 (13:18 -0500)
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: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-start-ephemeral.in

index 70b1150daaa4d5f0e007a881173670201e9f0aab..85772563d84c13542b005b353d8786c169a52200 100644 (file)
@@ -286,3 +286,5 @@ for ip in ips:
 
 # Shutdown the container
 dest.shutdown(timeout=5)
+
+sys.exit(retval)