From 73039ebe20d1a79b810023239fa7af07d19a3209 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 16 Aug 2011 16:05:04 -0400 Subject: [PATCH 1/1] fix TypeError --- sfa/trust/hierarchy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.43.0