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:
1ad1df3
)
fix bug
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sat, 30 Jun 2012 02:40:28 +0000
(22:40 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sat, 30 Jun 2012 02:40:28 +0000
(22:40 -0400)
sfa/util/xrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/xrn.py
b/sfa/util/xrn.py
index
083e620
..
843b035
100644
(file)
--- a/
sfa/util/xrn.py
+++ b/
sfa/util/xrn.py
@@
-223,7
+223,9
@@
class Xrn:
raise SfaAPIError, "Xrn.hrn_to_urn, hrn=%s"%self.hrn
if self.type and self.type.startswith('authority'):
- self.authority = Xrn.hrn_split(self.hrn)
+ self.authority = Xrn.hrn_auth_list(self.hrn)
+ if not self.authority:
+ self.authority = [self.hrn]
type_parts = self.type.split("+")
self.type = type_parts[0]
name = 'sa'