From 8b323c27acd2c9e0a31e9264ab85f19cbd028363 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 3 Jul 2012 12:04:58 -0400 Subject: [PATCH] fix bug in pl_login_base() --- sfa/planetlab/plxrn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.47.0