From: Andy Bavier Date: Mon, 19 Sep 2011 17:45:00 +0000 (-0400) Subject: Compatibility changes X-Git-Tag: sfa-1.1-1~191^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4eb274967ce2b251c2d893797986ab777feb1a0b;p=sfa.git Compatibility changes Minor changes to work with the SFA 1.0-36 release. --- diff --git a/sfa/managers/aggregate_manager_eucalyptus.py b/sfa/managers/aggregate_manager_eucalyptus.py index f737e09e..f0b60c1e 100644 --- a/sfa/managers/aggregate_manager_eucalyptus.py +++ b/sfa/managers/aggregate_manager_eucalyptus.py @@ -21,7 +21,7 @@ from sfa.trust.credential import Credential from sfa.plc.api import SfaAPI from sfa.util.plxrn import hrn_to_pl_slicename, slicename_to_hrn from sfa.util.callids import Callids -from sfa.util.sfalogging import sfa_logger +from sfa.util.sfalogging import logger from sfa.rspecs.sfa_rspec import sfa_rspec_version from sfa.util.version import version_core @@ -369,7 +369,7 @@ class EucaRSpecBuilder(object): xml = self.eucaRSpec cloud = self.cloudInfo with xml.RSpec(type='eucalyptus'): - with xml.network(id=cloud['name']): + with xml.network(name=cloud['name']): with xml.ipv4: xml << cloud['ip'] #self.__keyPairsXML(cloud['keypairs']) @@ -429,8 +429,7 @@ def ListResources(api, creds, options, call_id): # get hrn of the original caller origin_hrn = options.get('origin_hrn', None) if not origin_hrn: - origin_hrn = Credential(string=creds).get_gid_caller().get_hrn() - # origin_hrn = Credential(string=creds[0]).get_gid_caller().get_hrn() + origin_hrn = Credential(string=creds[0]).get_gid_caller().get_hrn() conn = getEucaConnection()