pass options to auth.check()
[sfa.git] / sfa / methods / ListResources.py
index 4fb0faf..03d904d 100644 (file)
@@ -36,10 +36,9 @@ class ListResources(Method):
         # get slice's hrn from options    
         xrn = options.get('geni_slice_urn', '')
         (hrn, _) = urn_to_hrn(xrn)
-        (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
 
         # Find the valid credentials
-        valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', hrn, speaking_for)
+        valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', hrn, options=options)
 
         # get hrn of the original caller 
         origin_hrn = options.get('origin_hrn', None)