Skip to content

Commit

Permalink
ovirt correct resolving nested atributes which are false (ansible#63908)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas authored and gundalow committed Oct 25, 2019
1 parent 5e9638c commit 92d6212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/ovirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def resolve_href(value):
value = None
nested_obj = dict(
(attr, convert_value(getattr(value, attr)))
for attr in attributes if getattr(value, attr, None)
for attr in attributes if getattr(value, attr, None) is not None
)
nested_obj['id'] = getattr(value, 'id', None)
nested_obj['href'] = getattr(value, 'href', None)
Expand Down

0 comments on commit 92d6212

Please sign in to comment.