From 46e7d2716a1bf89667ff841145972ce5f79854c2 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(). --- network/openvswitch_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/openvswitch_bridge.py b/network/openvswitch_bridge.py index 411b95b9dc1..68528dd478a 100644 --- a/network/openvswitch_bridge.py +++ b/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,