1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +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']
config = {}
for pattr in param_attrs:
for n, p in getattr(self, pattr).itervalues():
config[n] = p.default
for p in getattr(self, pattr):
config[p.name] = p.default
return config
def _set(self, attr, vals):