From: Tony Mack Date: Mon, 7 Dec 2009 22:57:07 +0000 (+0000) Subject: fix typo, should be calling plcapi.GetNodes here X-Git-Tag: sfa-0.9-7~189 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c4d0e6ffeaea6660647055187331e6cb3aac35f8;p=sfa.git fix typo, should be calling plcapi.GetNodes here --- diff --git a/sfa/methods/get_key.py b/sfa/methods/get_key.py index afc23b65..a36bc340 100644 --- a/sfa/methods/get_key.py +++ b/sfa/methods/get_key.py @@ -28,7 +28,7 @@ class get_key(Method): interfaces = self.api.plshell.GetInterfaces(self.api.plauth, {'ip': ip}, ['node_id']) if not interfaces: raise NonExistingRecord("no such ip %(ip)s" % locals()) - nodes = self.api.plshell(self.api.plauth, [interfaces[0]['node_id']], ['node_id', 'hostname']) + nodes = self.api.plshell.GetNodes(self.api.plauth, [interfaces[0]['node_id']], ['node_id', 'hostname']) if not nodes: raise NonExistingRecord("no such node using ip %(ip)s" % locals()) node = nodes[0]