From: Tony Mack Date: Tue, 28 Aug 2012 16:03:55 +0000 (-0400) Subject: fix method params X-Git-Tag: sfa-3.0-0~130 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=95a2462e94eac7a155dbea39ff8f6fa56a3ee5f4;p=sfa.git fix method params --- diff --git a/sfa/methods/Describe.py b/sfa/methods/Describe.py index 546be22e..c6a4dd38 100644 --- a/sfa/methods/Describe.py +++ b/sfa/methods/Describe.py @@ -26,7 +26,7 @@ class Describe(Method): ] returns = Parameter(str, "List of resources") - def call(self, creds, options): + def call(self, urns, creds, options): self.api.logger.info("interface: %s\tmethod-name: %s" % (self.api.interface, self.name)) # client must specify a version @@ -37,7 +37,7 @@ class Describe(Method): raise SfaInvalidArgument('Must specify an rspec version option. geni_rspec_version cannot be null') # Find the valid credentials - valid_creds = self.api.auth.checkCredentials(creds, 'listnodes') + valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', urns) # get hrn of the original caller origin_hrn = options.get('origin_hrn', None)