From: Tony Mack Date: Tue, 3 Jul 2012 16:04:58 +0000 (-0400) Subject: fix bug in pl_login_base() X-Git-Tag: sfa-2.1-12~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8b323c27acd2c9e0a31e9264ab85f19cbd028363;p=sfa.git fix bug in pl_login_base() --- diff --git a/sfa/planetlab/plxrn.py b/sfa/planetlab/plxrn.py index 6d57dccb..22e94181 100644 --- 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()