mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
commands/create: Only add instruments/output processors once
Ensure that instruments and output processors are only added to the generated agenda once.
This commit is contained in:
parent
4a9b24a9a8
commit
1eaffb6744
@ -79,10 +79,11 @@ class CreateAgendaSubcommand(SubCommand):
|
|||||||
entry['params'] = config
|
entry['params'] = config
|
||||||
agenda['workloads'].append(entry)
|
agenda['workloads'].append(entry)
|
||||||
else:
|
else:
|
||||||
if extcls.kind == 'instrument':
|
if extcls.kind in ('instrument', 'output_processor'):
|
||||||
agenda['config']['augmentations'].append(name)
|
if name not in agenda['config']['augmentations']:
|
||||||
if extcls.kind == 'output_processor':
|
|
||||||
agenda['config']['augmentations'].append(name)
|
agenda['config']['augmentations'].append(name)
|
||||||
|
|
||||||
|
if name not in agenda['config']:
|
||||||
agenda['config'][name] = config
|
agenda['config'][name] = config
|
||||||
|
|
||||||
if args.output:
|
if args.output:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user