From: Tony Mack Date: Sat, 30 Jun 2012 02:12:02 +0000 (-0400) Subject: cast to string X-Git-Tag: sfa-2.1-12~25 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1ad1df31727cc62809512aafb81cb3c941f191ff;p=sfa.git cast to string --- diff --git a/sfa/trust/hierarchy.py b/sfa/trust/hierarchy.py index 598ba561..2040510b 100644 --- a/sfa/trust/hierarchy.py +++ b/sfa/trust/hierarchy.py @@ -141,7 +141,7 @@ class Hierarchy: # @param create_parents if true, also create the parents if they do not exist def create_auth(self, xrn, create_parents=False): - hrn, type = urn_to_hrn(xrn) + hrn, type = urn_to_hrn(str(xrn)) logger.debug("Hierarchy: creating authority: %s"% hrn) # create the parent authority if necessary