From 2d65df96d719627b913ac3fb195f6fd587b011a2 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 7 Dec 2009 22:56:15 +0000 Subject: [PATCH] fix typo, should be calling plcapi.GetInterfaces here --- sfa/methods/get_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/methods/get_key.py b/sfa/methods/get_key.py index 8f2c2f21..afc23b65 100644 --- a/sfa/methods/get_key.py +++ b/sfa/methods/get_key.py @@ -25,7 +25,7 @@ class get_key(Method): # verify that the callers's ip address exist in the db and is an inteface # for a node in the db (ip, port) = self.api.remote_addr - interfaces = self.api.plshell(self.api.plauth, {'ip': ip}, ['node_id']) + 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']) -- 2.43.0