X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fplanetlab%2Fplslices.py;h=58ee4f423c521c3cffd9b36e6cad93e8811e20a1;hp=eb6006655940bc68e37987eb848b94f8a53b8855;hb=bc77b3e1ce73d7f748d9cc978472dba246034d74;hpb=e8b16b96a23e1ab54e780587cc7cc0345a1ddf0e diff --git a/sfa/planetlab/plslices.py b/sfa/planetlab/plslices.py index eb600665..58ee4f42 100644 --- a/sfa/planetlab/plslices.py +++ b/sfa/planetlab/plslices.py @@ -1,5 +1,6 @@ from types import StringTypes from collections import defaultdict +import sys from sfa.util.sfatime import utcparse, datetime_to_epoch from sfa.util.sfalogging import logger @@ -130,13 +131,11 @@ class PlSlices: # slice belongs to out local plc or a myplc peer. We will assume it # is a local site, unless we find out otherwise peer = None - # get this slice's authority (site) slice_authority = get_authority(hrn) # get this site's authority (sfa root authority or sub authority) site_authority = get_authority(slice_authority).lower() - # check if we are already peered with this site_authority, if so peers = self.driver.shell.GetPeers({}, ['peer_id', 'peername', 'shortname', 'hrn_root']) for peer_record in peers: