From: Tony Mack Date: Wed, 7 Sep 2011 18:37:43 +0000 (-0400) Subject: in urn_to_sliver_id(), convert all values to string before calling str.join() X-Git-Tag: sfa-1.0-36~18^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=244d59a6faa128df7af5fe2291fe4231f3783a9e;hp=fb97131068ce7f49a7560959b54c440437f6674b;p=sfa.git in urn_to_sliver_id(), convert all values to string before calling str.join() --- diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 4709b495..3dc87b63 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -33,7 +33,7 @@ def hrn_to_urn(hrn,type): return Xrn(hrn, type=type).urn def hrn_authfor_hrn(parenthrn, hrn): return Xrn.hrn_is_auth_for_hrn(parenthrn, hrn) def urn_to_sliver_id(urn, slice_id, node_id, index=0): - return ":".join([urn, slice_id, node_id, index]) + return ":".join(map(str, [urn, slice_id, node_id, index])) class Xrn: