git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
784ffdf
)
older gids will still have the hrn encoded in the gid, so when decodeing first check...
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 12 Jan 2010 20:46:11 +0000
(20:46 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 12 Jan 2010 20:46:11 +0000
(20:46 +0000)
sfa/trust/gid.py
patch
|
blob
|
history
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.