scripts: gen_config: Double-inclusion processing code could fail
The add1b5884b commit introduced
a mechanism to skip second inclusion of the manifests. This code
contained a typo that lead to script crash when single profile
actually included twice.
Current commit fixes the typo.
Fixes: PPW-1115
Signed-off-by: Volodymyr Martysh <v.martysh@inango-systems.com>
This commit is contained in:
parent
ebc7847c89
commit
016a5b7eef
@ -44,7 +44,7 @@ def usage(code: int = 0):
|
||||
def load_yaml(fname: str, profile: dict, seen: set[str]):
|
||||
|
||||
if fname in seen:
|
||||
return profile
|
||||
return (profile, seen)
|
||||
|
||||
# Allow profile overriding by searching in reverse order
|
||||
for folder in profile_folders.split(':')[::-1]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user