git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca5d75e
)
reverting previous changes to get_authority. Its seems many other operations expect...
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 16 Dec 2008 17:18:09 +0000
(17:18 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 16 Dec 2008 17:18:09 +0000
(17:18 +0000)
util/misc.py
patch
|
blob
|
history
diff --git
a/util/misc.py
b/util/misc.py
index
b2e2b8e
..
bd703b7
100644
(file)
--- 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"):