From 5cdc905cab8a8e330e74e1c02b354b476f75bf28 Mon Sep 17 00:00:00 2001 From: Blake Covarrubias Date: Thu, 7 Jul 2016 15:33:24 -0700 Subject: [PATCH] =?UTF-8?q?Define=20external=5Fids=20=E2=80=99type'=20in?= =?UTF-8?q?=20openvswitch=5Fbridge=20(#2523)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The external_ids 'type' was not defined in the argument spec of openvswitch_bridge. This caused 'external_ids' to be converted to a string leading to an error when later calling exp_external_ids.items(). --- lib/ansible/modules/extras/network/openvswitch_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/network/openvswitch_bridge.py b/lib/ansible/modules/extras/network/openvswitch_bridge.py index 411b95b9dc1..68528dd478a 100644 --- a/lib/ansible/modules/extras/network/openvswitch_bridge.py +++ b/lib/ansible/modules/extras/network/openvswitch_bridge.py @@ -249,7 +249,7 @@ def main(): 'bridge': {'required': True}, 'state': {'default': 'present', 'choices': ['present', 'absent']}, 'timeout': {'default': 5, 'type': 'int'}, - 'external_ids': {'default': None}, + 'external_ids': {'default': None, 'type': 'dict'}, 'fail_mode': {'default': None}, }, supports_check_mode=True,