update the authority section of an existing urn
"""
authority_hrn = self.get_authority_hrn()
- hrn = ".".join([authority, self.get_leaf()])
- self.hrn = hrn
- self.hrn_to_urn()
+ if not authority_hrn.startswith(authority+"."):
+ self.hrn = authority + "." + self.hrn
+ self.hrn_to_urn()
self._normalize()
def urn_to_hrn(self):