From: Thierry Parmentelat Date: Thu, 23 Nov 2006 19:43:34 +0000 (+0000) Subject: add system slices on local hosts only - X-Git-Tag: pycurl-7_13_1~259 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=86f6412b46e53223d4160f9f575a58c3511a9b41;p=plcapi.git add system slices on local hosts only - though I'm not sure I understand what sense it makes for a plc to answer GetSlivers for a non-local node --- diff --git a/PLC/Methods/GetSlivers.py b/PLC/Methods/GetSlivers.py index 1c9746cf..ace99c55 100644 --- a/PLC/Methods/GetSlivers.py +++ b/PLC/Methods/GetSlivers.py @@ -148,8 +148,8 @@ class GetSlivers(Method): # If not a foreign node, add all of our default system # slices to it. - # XXX if not node['peer_id']: - slice_ids.update(system_slice_ids) + if node['peer_id'] is not None: + slice_ids.update(system_slice_ids) slivers = [] for slice in map(lambda id: all_slices[id], slice_ids.keys()):