1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 20:38:57 +00:00

target/descriptor: Fix generate target default config

Was previously expecting a dictionary of parameter attributes however the
actual type is a list.
This commit is contained in:
Marc Bonnici 2018-02-15 12:02:26 +00:00 committed by setrofim
parent 2158dd047e
commit 52dca17fef

View File

@ -111,8 +111,8 @@ class TargetDescription(object):
'conn_params', 'assistant_params'] 'conn_params', 'assistant_params']
config = {} config = {}
for pattr in param_attrs: for pattr in param_attrs:
for n, p in getattr(self, pattr).itervalues(): for p in getattr(self, pattr):
config[n] = p.default config[p.name] = p.default
return config return config
def _set(self, attr, vals): def _set(self, attr, vals):