Skip to content

Commit

Permalink
ovirt_host_network: check for empty user_opts (#46695)
Browse files Browse the repository at this point in the history
  • Loading branch information
bverschueren authored and ansibot committed Oct 18, 2018
1 parent ad3579b commit 8a671f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ansible/modules/cloud/ovirt/ovirt_host_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def get_type_name(mode_number):
)

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)
Expand Down

0 comments on commit 8a671f5

Please sign in to comment.