PL Driver: 1st shot rebase of PL operations around the HRN tags of Slice/Person/Site
[sfa.git] / sfa / importer / plimporter.py
index 26d1ccd..7f5cf86 100644 (file)
@@ -192,7 +192,7 @@ class PlImporter:
 
         # start importing 
         for site in sites:
-            if site['name'].startswith('sfa.'):
+            if site['name'].startswith('sfa:'):
                 continue
 
             site_hrn = _get_site_hrn(interface_hrn, site)
@@ -376,7 +376,7 @@ class PlImporter:
             # being improperly handled, and where the whole loop on persons
             # could be performed twice with the same person...
             # so hopefully we do not need to eliminate duplicates explicitly here anymore
-            site_record.reg_pis = site_pis
+            site_record.reg_pis = list(set(site_pis))
             dbsession.commit()
 
             # import slices