diff --git a/changelogs/fragments/ovirt_host_network_check_for_empty_user_opts.yaml b/changelogs/fragments/ovirt_host_network_check_for_empty_user_opts.yaml new file mode 100644 index 0000000000..a0b4c23745 --- /dev/null +++ b/changelogs/fragments/ovirt_host_network_check_for_empty_user_opts.yaml @@ -0,0 +1,2 @@ +bugfixes: + - ovirt_host_network - check for empty user_opts (https://github.com/ansible/ansible/pull/47283). diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py b/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py index 243b6134d4..8f5d3e23a6 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py @@ -221,7 +221,8 @@ def get_bond_options(mode, usr_opts): ) opts_dict = DEFAULT_MODE_OPTS.get(mode, {}) - opts_dict.update(**usr_opts) + if usr_opts is not None: + opts_dict.update(**usr_opts) options.extend( [otypes.Option(name=opt, value=value)