From f819091736c16521c9317421866aa19027ff26ed Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 16 Dec 2008 17:18:09 +0000 Subject: [PATCH] reverting previous changes to get_authority. Its seems many other operations expect get_authority to return an empty string at some point. Not returning this breaks a lot of operations. --- util/misc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/misc.py b/util/misc.py index b2e2b8ea..bd703b70 100644 --- a/util/misc.py +++ b/util/misc.py @@ -6,9 +6,7 @@ def get_leaf(hrn): def get_authority(hrn): parts = hrn.split(".") - if len(parts) > 1: - return ".".join(parts[:-1]) - return hrn + return ".".join(parts[:-1]) def get_auth_type(type): if (type=="slice") or (type=="user") or (type=="sa"): -- 2.47.0