1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ovirt_host_network: Fix type conversion (#47617)

Signed-off-by: Ondra Machacek <omachace@redhat.com>
This commit is contained in:
Ondra Machacek 2018-10-29 12:49:58 +01:00 committed by John R Barker
parent d3fe6c01f2
commit 36b0aed03a
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ovirt_host_network - Fix type conversion (https://github.com/ansible/ansible/pull/47617).

View file

@ -221,12 +221,12 @@ def get_bond_options(mode, usr_opts):
) )
) )
opts_dict = DEFAULT_MODE_OPTS.get(mode, {}) opts_dict = DEFAULT_MODE_OPTS.get(str(mode), {})
if usr_opts is not None: if usr_opts is not None:
opts_dict.update(**usr_opts) opts_dict.update(**usr_opts)
options.extend( options.extend(
[otypes.Option(name=opt, value=value) [otypes.Option(name=opt, value=str(value))
for opt, value in six.iteritems(opts_dict)] for opt, value in six.iteritems(opts_dict)]
) )
return options return options