From: Tony Mack Date: Tue, 16 Dec 2008 17:18:09 +0000 (+0000) Subject: reverting previous changes to get_authority. Its seems many other operations expect... X-Git-Tag: sfa-0.9-0@14641~793 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f819091736c16521c9317421866aa19027ff26ed;p=sfa.git 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. --- 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"):