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', options=options)
+ valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'listnodes', options=options)
# get hrn of the original caller
origin_hrn = options.get('origin_hrn', None)
self.api.logger.debug("ListResources: sfatables on chain %s"%chain_name)
filtered_rspec = run_sfatables(chain_name, '', origin_hrn, rspec)
- if options.has_key('geni_compressed') and options['geni_compressed'] == True:
+ if 'geni_compressed' in options and options['geni_compressed'] == True:
filtered_rspec = zlib.compress(filtered_rspec).encode('base64')
return filtered_rspec