From: Tony Mack Date: Tue, 16 Aug 2011 20:05:04 +0000 (-0400) Subject: fix TypeError X-Git-Tag: sfa-1.0-32~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=73039ebe20d1a79b810023239fa7af07d19a3209;p=sfa.git fix TypeError --- diff --git a/sfa/trust/hierarchy.py b/sfa/trust/hierarchy.py index 17746d76..73b297b5 100644 --- 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