Verify expect versions of DRAC, HPiLO and updates to APCControl, & OpenIPMI
[pcucontrol.git] / pcucontrol / models / DRAC.py
index 672d92f..d9e4fe6 100644 (file)
@@ -4,12 +4,12 @@ import time
 class DRAC(BasicPCUControl):
     supported_ports = [22,443,5869]
     def run_drac(self, node_port, dryrun):
-        return self.run_expect_script("DRAC.exp racadm5", dryrun=dryrun, model="None")
+        return self.run_expect_script("DRAC.exp racadm", dryrun=dryrun, model="None")
 
     def run_ssh(self, node_port, dryrun):
         return self.run_expect_script("DRAC.exp ssh", dryrun=dryrun, model="None")
 
-    def pcu_run(self, node_port):
+    def pcu_run(self, node_port, dryrun=False):
         r = self.run_ssh(node_port, dryrun=False)
         if "No error" in r:
             return r
@@ -18,7 +18,7 @@ class DRAC(BasicPCUControl):
             return r2
         return r + " :: " +r2
 
-    def pcu_test(self, node_port):
+    def pcu_test(self, node_port, dryrun=True):
         r = self.run_ssh(node_port, dryrun=True)
         if "No error" in r:
             return r