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:
37119fc
)
fix TypeError
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 16 Aug 2011 20:05:04 +0000
(16:05 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 16 Aug 2011 20:05:04 +0000
(16:05 -0400)
sfa/trust/hierarchy.py
patch
|
blob
|
history
diff --git
a/sfa/trust/hierarchy.py
b/sfa/trust/hierarchy.py
index
17746d7
..
73b297b
100644
(file)
--- a/
sfa/trust/hierarchy.py
+++ b/
sfa/trust/hierarchy.py
@@
-239,8
+239,11
@@
class Hierarchy:
gid = GID(subject=hrn, uuid=uuid, hrn=hrn, urn=urn)
# is this a CA cert
- if hrn == self.config.SFA_INTERFACE_HRN or \
- not parent_hrn or 'authority' in type:
+ if hrn == self.config.SFA_INTERFACE_HRN or not parent_hrn:
+ # root or sub authority
+ gid.set_intermediate_ca(True)
+ elif type and 'authority' in type:
+ # authority type
gid.set_intermediate_ca(True)
# set issuer