From: Mohamed Larabi Date: Wed, 29 May 2013 14:45:01 +0000 (+0200) Subject: pl: node component_id takes also site login_base X-Git-Tag: sfa-3.0-1~39 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=83c1c134c3241c12741ac84f414c005f28ac659a;p=sfa.git pl: node component_id takes also site login_base --- diff --git a/sfa/planetlab/plaggregate.py b/sfa/planetlab/plaggregate.py index fc4bb49b..d869cc1a 100644 --- a/sfa/planetlab/plaggregate.py +++ b/sfa/planetlab/plaggregate.py @@ -193,7 +193,7 @@ class PlAggregate: rspec_node = NodeElement() # xxx how to retrieve site['login_base'] site=sites[node['site_id']] - rspec_node['component_id'] = PlXrn(self.driver.hrn, hostname=node['hostname']).get_urn() + rspec_node['component_id'] = hostname_to_urn(self.driver.hrn, site['login_base'], node['hostname']) rspec_node['component_name'] = node['hostname'] rspec_node['component_manager_id'] = Xrn(self.driver.hrn, 'authority+cm').get_urn() rspec_node['authority_id'] = hrn_to_urn(PlXrn.site_hrn(self.driver.hrn, site['login_base']), 'authority+sa')