X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_key.py;h=dc83593d9b00f658ed628f188b6aa1bd416ba58c;hb=11d02cbfd5e91784119bb9377fceb4fa6adae621;hp=c641985b6b71f31e62e02859434b95e44c9852b7;hpb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;p=sfa.git diff --git a/sfa/methods/get_key.py b/sfa/methods/get_key.py index c641985b..dc83593d 100644 --- a/sfa/methods/get_key.py +++ b/sfa/methods/get_key.py @@ -45,7 +45,8 @@ class get_key(Method): # generate a new keypair and gid uuid = create_uuid() pkey = Keypair(create=True) - gid_object = self.api.auth.hierarchy.create_gid(record['hrn'], uuid, pkey) + urn = hrn_to_urn(record['hrn'], record['type']) + gid_object = self.api.auth.hierarchy.create_gid(urn, uuid, pkey) gid = gid_object.save_to_string(save_parents=True) record['gid'] = gid record.set_gid(gid)