X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FRebootNode.py;h=3d5f4a00fc9e4b5c67a391aeec258b988f3eff87;hb=929d1cbbc300f8a33cf0cfe9d6add3b898e0c552;hp=d7b4c8373f2019d7e651e017a2010e2064f6b19e;hpb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;p=plcapi.git diff --git a/PLC/Methods/RebootNode.py b/PLC/Methods/RebootNode.py index d7b4c83..3d5f4a0 100644 --- a/PLC/Methods/RebootNode.py +++ b/PLC/Methods/RebootNode.py @@ -32,7 +32,7 @@ class RebootNode(Method): def call(self, auth, node_id_or_hostname): # Get account information - nodes = Nodes(self.api, [node_id_or_hostname]).values() + nodes = Nodes(self.api, [node_id_or_hostname]) if not nodes: raise PLCInvalidArgument, "No such node" @@ -55,7 +55,7 @@ class RebootNode(Method): # Only use the hostname as a backup, try to use the primary ID # address instead. host = node['hostname'] - nodenetworks = NodeNetworks(self.api, node['nodenetwork_ids']).values() + nodenetworks = NodeNetworks(self.api, node['nodenetwork_ids']) for nodenetwork in nodenetworks: if nodenetwork['is_primary'] == 1: host = nodenetwork['ip']