1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

target/descriptor: Fix overwriting variable

Ensure we don't overwrite `conn_params` in the inner for loop.
This commit is contained in:
Marc Bonnici 2020-04-17 11:22:52 +01:00 committed by setrofim
parent 53faf159e8
commit 9b19f33186

View File

@ -625,9 +625,8 @@ class DefaultTargetDescriptor(TargetDescriptor):
if plat_conn: if plat_conn:
td.conn = plat_conn td.conn = plat_conn
conn_params = CONNECTION_PARAMS[plat_conn] td.conn_params = self._override_params(CONNECTION_PARAMS[plat_conn],
td.conn_params = self._override_params(conn_params, conn_defaults) conn_defaults)
else: else:
td.conn = conn td.conn = conn
td.conn_params = self._override_params(conn_params, conn_defaults) td.conn_params = self._override_params(conn_params, conn_defaults)