hierarchy.create_auth returns new gid
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 9 Feb 2017 15:27:31 +0000 (16:27 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 9 Feb 2017 15:27:31 +0000 (16:27 +0100)
sfa/trust/hierarchy.py

index 8e126a7..0234816 100644 (file)
@@ -177,6 +177,7 @@ class Hierarchy:
 
         gid = self.create_gid(xrn, create_uuid(), pkey)
         gid.save_to_file(gid_filename, save_parents=True)
 
         gid = self.create_gid(xrn, create_uuid(), pkey)
         gid.save_to_file(gid_filename, save_parents=True)
+        return gid
 
     def create_top_level_auth(self, hrn=None):
         """
 
     def create_top_level_auth(self, hrn=None):
         """