From: Barış Metin Date: Wed, 10 Mar 2010 13:41:21 +0000 (+0000) Subject: quote pass X-Git-Tag: pcucontrol-1.0-2~3 X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=commitdiff_plain;h=f59b2a6ccb70a42e7c9af38ec7dbcaf5af7f78b4 quote pass --- diff --git a/pcucontrol/models/DRAC.py b/pcucontrol/models/DRAC.py index 7cc4981..11d23f6 100644 --- a/pcucontrol/models/DRAC.py +++ b/pcucontrol/models/DRAC.py @@ -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