reverting previous changes to get_authority. Its seems many other operations expect...
authorTony Mack <tmack@cs.princeton.edu>
Tue, 16 Dec 2008 17:18:09 +0000 (17:18 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 16 Dec 2008 17:18:09 +0000 (17:18 +0000)
util/misc.py

index b2e2b8e..bd703b7 100644 (file)
@@ -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"):