sets the right gid for level1_auth in the genitable
[sfa.git] / sfa / plc / sfa-import-plc.py
index d2d80c3..8641e06 100755 (executable)
@@ -282,6 +282,8 @@ def create_top_level_auth_records(hrn):
     if not parent_hrn:
         parent_hrn = hrn    
     auth_info = AuthHierarchy.get_auth_info(parent_hrn)
+    if level1_auth:
+        auth_info = AuthHierarchy.get_auth_info(hrn)
     table = get_auth_table(parent_hrn)
 
     auth_record = table.resolve("authority", hrn)