From 9b19f33186e5638d29458d13e653ad61bb3e2b44 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Fri, 17 Apr 2020 11:22:52 +0100 Subject: [PATCH] target/descriptor: Fix overwriting variable Ensure we don't overwrite `conn_params` in the inner for loop. --- wa/framework/target/descriptor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wa/framework/target/descriptor.py b/wa/framework/target/descriptor.py index 889a7d92..3954283c 100644 --- a/wa/framework/target/descriptor.py +++ b/wa/framework/target/descriptor.py @@ -625,9 +625,8 @@ class DefaultTargetDescriptor(TargetDescriptor): if plat_conn: td.conn = plat_conn - conn_params = CONNECTION_PARAMS[plat_conn] - td.conn_params = self._override_params(conn_params, conn_defaults) - + td.conn_params = self._override_params(CONNECTION_PARAMS[plat_conn], + conn_defaults) else: td.conn = conn td.conn_params = self._override_params(conn_params, conn_defaults)