planetlab import : site name is authorititative over authority's name
Thierry Parmentelat [Wed, 3 Jun 2015 09:51:36 +0000 (11:51 +0200)]
sfa/importer/plimporter.py

index b4f9237..c31aa92 100644 (file)
@@ -218,7 +218,8 @@ class PlImporter:
                     auth_info = self.auth_hierarchy.get_auth_info(urn)
                     site_record = RegAuthority(hrn=site_hrn, gid=auth_info.get_gid_object(),
                                                pointer=site['site_id'],
-                                               authority=get_authority(site_hrn))
+                                               authority=get_authority(site_hrn),
+                                               name=site['name'])
                     site_record.just_created()
                     global_dbsession.add(site_record)
                     global_dbsession.commit()