git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
older gids will still have the hrn encoded in the gid, so when decodeing first check...
[sfa.git]
/
sfa
/
trust
/
gid.py
diff --git
a/sfa/trust/gid.py
b/sfa/trust/gid.py
index
2350af1
..
cde4476
100644
(file)
--- a/
sfa/trust/gid.py
+++ b/
sfa/trust/gid.py
@@
-116,7
+116,9
@@
class GID(Certificate):
self.uuid = dict.get("uuid", None)
self.urn = dict.get("urn", None)
- self.hrn = urn_to_hrn(self.urn)[0]
+ self.hrn = dict.get("hrn", None)
+ if self.urn:
+ self.hrn = urn_to_hrn(self.urn)[0]
##
# Dump the credential to stdout.