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
(from parent 1:
7641bb6
)
fix bug in pl_login_base()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 3 Jul 2012 16:04:58 +0000
(12:04 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 3 Jul 2012 16:04:58 +0000
(12:04 -0400)
sfa/planetlab/plxrn.py
patch
|
blob
|
history
diff --git
a/sfa/planetlab/plxrn.py
b/sfa/planetlab/plxrn.py
index
6d57dcc
..
22e9418
100644
(file)
--- a/
sfa/planetlab/plxrn.py
+++ b/
sfa/planetlab/plxrn.py
@@
-76,7
+76,10
@@
class PlXrn (Xrn):
def pl_login_base (self):
self._normalize()
- base = self.authority[-1]
+ if self.type and self.type.startswith('authority'):
+ base = self.leaf
+ else:
+ base = self.authority[-1]
# Fix up names of GENI Federates
base = base.lower()