fix bug
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Sat, 30 Jun 2012 02:40:28 +0000 (22:40 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Sat, 30 Jun 2012 02:40:28 +0000 (22:40 -0400)
sfa/util/xrn.py

index 083e620..843b035 100644 (file)
@@ -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'