VOL-532 : Bug fix
Create a new variable to prevent reuse of a variable type.
Change-Id: I99ef6c3de060566b773e215b80b036fa3d5ef126
diff --git a/voltha/core/adapter_agent.py b/voltha/core/adapter_agent.py
index 5c2327d..bd10a18 100644
--- a/voltha/core/adapter_agent.py
+++ b/voltha/core/adapter_agent.py
@@ -523,9 +523,9 @@
while True:
ld_id, dp_id = create_cluster_logical_device_ids(core_id, switch_id)
- existing_ids = dp_id in existing_datapath_ids or ld_id in \
+ id_exists = dp_id in existing_datapath_ids or ld_id in \
existing_ids
- if not existing_ids:
+ if not id_exists:
return ld_id, dp_id
else:
if dpid: