X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FListResources.py;h=33777fd7ff2193693a8b3d91cbdc324080464b42;hb=bcafcbf0f80ffcb32da8eb6579d6c291c6e4e36c;hp=a9ffe76027900e148e725408064c50cd7ee81e30;hpb=0fe918467c52fd7b06abe8a92082c50ac282f470;p=sfa.git diff --git a/sfa/methods/ListResources.py b/sfa/methods/ListResources.py index a9ffe760..33777fd7 100644 --- a/sfa/methods/ListResources.py +++ b/sfa/methods/ListResources.py @@ -33,10 +33,8 @@ class ListResources(Method): else: raise SfaInvalidArgument('Must specify an rspec version option. geni_rspec_version cannot be null') - (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for')) - # Find the valid credentials - valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', speaking_for_hrn=speaking_for) + valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'listnodes', options=options) # get hrn of the original caller origin_hrn = options.get('origin_hrn', None)