Fixed an error that crept in while refactoring kvmsu into slicesu
Sapan Bhatia [Wed, 26 Mar 2014 14:13:56 +0000 (10:13 -0400)]
slicesu

diff --git a/slicesu b/slicesu
index 15e5854..aec402c 100644 (file)
--- a/slicesu
+++ b/slicesu
@@ -53,7 +53,7 @@ def kvmsu(slice_name, args):
        if (ip_addr_part[0]=='(' and ip_addr_part[-1]==')'):
                ip_addr = ip_addr_part[1:len(ip_addr_part)-1]
        
-       os.execv('/usr/bin/ssh',['/usr/bin/ssh','-o','StrictHostKeyChecking=no','root@%s'%ip_addr,'"$@"'])
+       os.execv('/usr/bin/ssh',['/usr/bin/ssh','-o','StrictHostKeyChecking=no','root@%s'%ip_addr] + args.command_to_run)
        
 
 def lxcsu(slice_name, args):