creating tag sfa-0.9-11
[sfa.git] / sfa / plc / sfa-import-plc.py
index 603f296..0350bbb 100755 (executable)
@@ -87,7 +87,7 @@ def main():
 
     # create root authority 
     sfaImporter.create_top_level_auth_records(root_auth)
-    if not root_auth == interface_hrn
+    if not root_auth == interface_hrn:
         sfaImporter.create_top_level_auth_records(interface_hrn)
 
     trace("Import: adding " + interface_hrn + " to trusted list", logger)
@@ -203,7 +203,9 @@ def main():
     for (record_hrn, type) in existing_records.keys():
         record = existing_records[(record_hrn, type)]
         # if this is the interface name dont do anything
-        if record_hrn == interface_hrn or record['peer_authority']:
+        if record_hrn == interface_hrn or \
+           record_hrn == root_auth or \
+           record['peer_authority']:
             continue
         # dont delete vini's internet2 placeholdder record
         # normally this would be deleted becuase it does not have a plc record