1
0
Fork 0
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:
James Cammarata 2015-10-12 09:00:27 -04:00
parent 4c85ae0712
commit 63e288354e

View file

@ -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