Skip to content

Commit

Permalink
ADCM-2358 add ruyaml COmposerError to processing bundle config
Browse files Browse the repository at this point in the history
  • Loading branch information
SofiaTal committed Nov 19, 2021
1 parent 275b1ca commit 63318d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cm/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def check_adcm_config(conf_file):
except ruyaml.constructor.DuplicateKeyError as e:
msg = f'{e.context}\n{e.context_mark}\n{e.problem}\n{e.problem_mark}'
err('STACK_LOAD_ERROR', f'Duplicate Keys error: {msg}')
except ruyaml.composer.ComposerError as e:
err('STACK_LOAD_ERROR', f'YAML Composer error: {e}')
try:
cm.checker.check(data, rules)
return data
Expand Down

0 comments on commit 63318d6

Please sign in to comment.