- # check and see if we need to create a gid for this record. The creator
- # of the record signals this by filling in the create_gid, create_gid_hrn,
- # and create_gid_key members.
- # (note: we'd use an unsigned GID in the record instead, but pyOpenSSL is
- # broken and has no way for us to get the key back out of the gid)
- geni_info = record.get_geni_info()
- if "create_gid" in geni_info:
- key_string = geni_info["create_gid_key"].replace("|","\n") # XXX smbaker: the rspec kills newlines
- gid = registry.create_gid(auth_cred, geni_info["create_gid_hrn"], create_uuid(), key_string)
- record.set_gid(gid)
-
- del geni_info["create_gid"]
- del geni_info["create_gid_hrn"]
- del geni_info["create_gid_key"]
-