From: Stephen Soltesz Date: Fri, 18 Jun 2010 19:51:25 +0000 (+0000) Subject: add a parameter to RebootNodeWithPCU to perform a 'testrun' without rebooting the... X-Git-Tag: pcucontrol-1.0-6~2 X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=commitdiff_plain;h=7ac7959bdf9af080186d01692a625062511fafca add a parameter to RebootNodeWithPCU to perform a 'testrun' without rebooting the node. --- diff --git a/pcucontrol/reboot.py b/pcucontrol/reboot.py index f31f690..0ec2abd 100755 --- a/pcucontrol/reboot.py +++ b/pcucontrol/reboot.py @@ -381,7 +381,7 @@ def model_to_object(modelname): print "UNKNOWN model %s"%modelname return Unknown -def reboot_api(node, pcu): +def reboot_api(node, pcu, testrun=False): rb_ret = "" try: @@ -393,7 +393,7 @@ def reboot_api(node, pcu): i = pcu['node_ids'].index(node['node_id']) p = pcu['ports'][i] # reboot - rb_ret = instance.reboot(p, False) + rb_ret = instance.reboot(p, testrun) else: rb_ret = "No modelname in PCU record." # TODO: how to handle the weird, georgetown pcus, the drac faults, and ilo faults