From 27caf13fe46e7f67a8120f20e65400362bb25870 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 29 Jun 2012 22:40:28 -0400 Subject: [PATCH] fix bug --- sfa/util/xrn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' -- 2.47.0