Skip to content

Commit

Permalink
fix(decl): Overwrite by assigning an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Mar 13, 2024
1 parent 1061109 commit 5e49459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capellambse/decl.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _operate_modify(
continue

if isinstance(value, list):
delattr(parent, attr)
setattr(parent, attr, [])
yield from _create_complex_objects(promises, parent, attr, value)
elif isinstance(value, dict):
obj = getattr(parent, attr)
Expand Down

0 comments on commit 5e49459

Please sign in to comment.