From: Tony Mack Date: Sat, 30 Jun 2012 02:40:28 +0000 (-0400) Subject: fix bug X-Git-Tag: sfa-2.1-12~24 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=27caf13fe46e7f67a8120f20e65400362bb25870;p=sfa.git fix bug --- diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 083e620f..843b0358 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -223,7 +223,9 @@ class Xrn: raise SfaAPIError, "Xrn.hrn_to_urn, hrn=%s"%self.hrn if self.type and self.type.startswith('authority'): - self.authority = Xrn.hrn_split(self.hrn) + self.authority = Xrn.hrn_auth_list(self.hrn) + if not self.authority: + self.authority = [self.hrn] type_parts = self.type.split("+") self.type = type_parts[0] name = 'sa'