fix bug in pl_login_base()
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 3 Jul 2012 16:04:58 +0000 (12:04 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 3 Jul 2012 16:04:58 +0000 (12:04 -0400)
sfa/planetlab/plxrn.py

index 6d57dcc..22e9418 100644 (file)
@@ -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()