From 86f6412b46e53223d4160f9f575a58c3511a9b41 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 23 Nov 2006 19:43:34 +0000 Subject: [PATCH] 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 --- PLC/Methods/GetSlivers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()): -- 2.47.0