X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=blobdiff_plain;f=pcucontrol%2Fmodels%2FDRAC.py;fp=pcucontrol%2Fmodels%2FDRAC.py;h=d9e4fe604f745b50ac00a1819e23db131f07d54b;hp=672d92fcf4d7ffa238b5a21f64627023d7f05e8e;hb=fec28d68cc164e581c476ee93fd4b4b68ef939fd;hpb=4c1af5526615cf1958b801176c802283d7d4d308 diff --git a/pcucontrol/models/DRAC.py b/pcucontrol/models/DRAC.py index 672d92f..d9e4fe6 100644 --- a/pcucontrol/models/DRAC.py +++ b/pcucontrol/models/DRAC.py @@ -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