mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bug in way omitted values were set
This commit is contained in:
parent
4c85ae0712
commit
63e288354e
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ class Base:
|
||||||
# if this evaluated to the omit value, set the value back to
|
# if this evaluated to the omit value, set the value back to
|
||||||
# the default specified in the FieldAttribute and move on
|
# the default specified in the FieldAttribute and move on
|
||||||
if omit_value is not None and value == omit_value:
|
if omit_value is not None and value == omit_value:
|
||||||
value = attribute.default
|
setattr(self, name, attribute.default)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# and make sure the attribute is of the type it should be
|
# and make sure the attribute is of the type it should be
|
||||||
|
|
Loading…
Reference in a new issue