From 8a671f54ddc5ec114ef807dc71f49d61261d2107 Mon Sep 17 00:00:00 2001 From: bverschueren Date: Thu, 18 Oct 2018 14:25:54 +0200 Subject: [PATCH] ovirt_host_network: check for empty user_opts (#46695) --- lib/ansible/modules/cloud/ovirt/ovirt_host_network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py b/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py index 58e146e7cd..49681fcba4 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_host_network.py @@ -222,7 +222,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)