X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FRefreshPeer.py;h=4d66a057366854514ab865fb86f593cae0201f09;hb=36c2b7ac70023306f36998c5e359fa4410aab58c;hp=49ef25fb1710973158ad53d83b58e723c34bac15;hpb=3cb520f37b53d23865bd09259b812d2591be769f;p=plcapi.git diff --git a/PLC/Methods/RefreshPeer.py b/PLC/Methods/RefreshPeer.py index 49ef25f..4d66a05 100644 --- a/PLC/Methods/RefreshPeer.py +++ b/PLC/Methods/RefreshPeer.py @@ -471,7 +471,7 @@ class RefreshPeer(Method): # Nodes that are currently part of the slice old_slice_node_ids = [ node_transcoder[node_id] for node_id in slice['node_ids'] \ - if node_transcoder[node_id] in peer_nodes] + if node_id in node_transcoder and node_transcoder[node_id] in peer_nodes] # Nodes that should be part of the slice slice_node_ids = [ node_id for node_id in peer_slice['node_ids'] if node_id in peer_nodes]