From ef50cc0f6767a8118a80be2e4f8b0001ba760b0c Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 7 Sep 2012 12:41:04 -0400 Subject: [PATCH] fix set_authority() --- 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 96563040..c623cbdd 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -177,7 +177,9 @@ class Xrn: update the authority section of an existing urn """ authority_hrn = self.get_authority_hrn() - hrn = ".".join([authority, self.get_leaf()]) + old_hrn_parts = Xrn.hrn_split(self.hrn) + old_hrn_parts[0] = authority + hrn = ".".join(old_hrn_list) self.hrn = hrn self.hrn_to_urn() self._normalize() -- 2.43.0