mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Parser: Fixes raising duplicate entry error.
This commit is contained in:
parent
af49c5020f
commit
c455ad524f
@ -186,7 +186,7 @@ def pop_aliased_param(cfg_point, d, default=None):
|
||||
aliases = [cfg_point.name] + cfg_point.aliases
|
||||
alias_map = [a for a in aliases if a in d]
|
||||
if len(alias_map) > 1:
|
||||
raise ConfigError(DUPLICATE_ENTRY_ERROR.format(aliases))
|
||||
raise ConfigError('Duplicate entry: {}'.format(aliases))
|
||||
elif alias_map:
|
||||
return d.pop(alias_map[0])
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user