From 7ac7959bdf9af080186d01692a625062511fafca Mon Sep 17 00:00:00 2001
From: Stephen Soltesz <soltesz@cs.princeton.edu>
Date: Fri, 18 Jun 2010 19:51:25 +0000
Subject: [PATCH] add a parameter to RebootNodeWithPCU to perform a 'testrun'
 without rebooting the node.

---
 pcucontrol/reboot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.47.0