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:
f6f1bf8
)
trying to resolve potential issues with foreign site login bases
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 7 Sep 2011 16:35:41 +0000
(12:35 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 7 Sep 2011 16:35:41 +0000
(12:35 -0400)
sfa/plc/slices.py
patch
|
blob
|
history
diff --git
a/sfa/plc/slices.py
b/sfa/plc/slices.py
index
c35f753
..
84698f3
100644
(file)
--- a/
sfa/plc/slices.py
+++ b/
sfa/plc/slices.py
@@
-230,7
+230,8
@@
class Slices:
(slice_hrn, type) = urn_to_hrn(slice_xrn)
site_hrn = get_authority(slice_hrn)
# login base can't be longer than 20 characters
- authority_name = get_leaf(site_hrn)
+ slicename = hrn_to_pl_slicename(hrn)
+ authority_name = slicename.split('_')[0]
login_base = authority_name[:20]
sites = self.api.plshell.GetSites(self.api.plauth, login_base)
if not sites: