quote pass
Barış Metin [Wed, 10 Mar 2010 13:41:21 +0000 (13:41 +0000)]
pcucontrol/models/DRAC.py

index 7cc4981..11d23f6 100644 (file)
@@ -145,10 +145,10 @@ def racadm_reboot(host, username, password, port, dryrun):
                cmd = "/usr/sbin/racadm"
                os.stat(cmd)
                if not dryrun:
-                       output = runcmd(cmd, ["-r %s -u %s -p %s serveraction powercycle" % (ip, username, password)],
+                       output = runcmd(cmd, ["-r %s -u %s -p '%s' serveraction powercycle" % (ip, username, password)],
                                username, password)
                else:
-                       output = runcmd(cmd, ["-r %s -u %s -p %s getsysinfo" % (ip, username, password)],
+                       output = runcmd(cmd, ["-r %s -u %s -p '%s' getsysinfo" % (ip, username, password)],
                                username, password)
 
                print "RUNCMD: %s" % output