fix bug in Register() (get the correct auth_info
Tony Mack [Thu, 5 Jul 2012 15:36:29 +0000 (11:36 -0400)]
sfa/managers/registry_manager.py

index a94a039..f3f75f7 100644 (file)
@@ -311,6 +311,7 @@ class RegistryManager:
                 api.auth.hierarchy.create_auth(hrn_to_urn(hrn,'authority'))
     
             # get the GID from the newly created authority
+            auth_info = api.auth.get_auth_info(hrn)
             gid = auth_info.get_gid_object()
             record.gid=gid.save_to_string(save_parents=True)