From: Thierry Parmentelat Date: Tue, 6 Jan 2009 06:10:19 +0000 (+0000) Subject: broken build - please review X-Git-Tag: PLCAPI-4.3-3~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=79508792d7c3684f9dea8c69ccc44d9d4827cf11;p=plcapi.git broken build - please review --- diff --git a/PLC/Methods/RebootNodeWithPCU.py b/PLC/Methods/RebootNodeWithPCU.py index c054320..b7ba001 100644 --- a/PLC/Methods/RebootNodeWithPCU.py +++ b/PLC/Methods/RebootNodeWithPCU.py @@ -55,20 +55,20 @@ class RebootNodeWithPCU(Method): if node['site_id'] not in self.caller['site_ids']: raise PLCPermissionDenied, "Not allowed to reboot nodes from specified site" - # Verify that the node has pcus associated with it. - pcus = PCUs(self.api, {'pcu_id' : node['pcu_ids']} ) + # Verify that the node has pcus associated with it. + pcus = PCUs(self.api, {'pcu_id' : node['pcu_ids']} ) if not pcus: raise PLCInvalidArgument, "No PCUs associated with Node" - pcu = pcus[0] + pcu = pcus[0] - if not external_dependency: + if not external_dependency: raise PLCNotImplemented, "Could not load external module to attempt reboot" - # model, hostname, port, - # i = pcu['node_ids'].index(node['node_id']) - # p = pcu['ports'][i] - ret = reboot.reboot_api(node, pcu) + # model, hostname, port, + # i = pcu['node_ids'].index(node['node_id']) + # p = pcu['ports'][i] + ret = reboot.reboot_api(node, pcu) self.event_objects = {'Node': [node['node_id']]} self.message = "RebootNodeWithPCU called"