From d00f5015b780d84ebc70a339918ae13253fade3d Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 7 Sep 2011 12:35:41 -0400 Subject: [PATCH] trying to resolve potential issues with foreign site login bases --- sfa/plc/slices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index c35f7536..84698f3c 100644 --- 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: -- 2.47.0