From 303894dd174091ab262d894737ee515ddd17f8ae Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Thu, 11 Jan 2018 21:13:00 +0530 Subject: [PATCH] fix nxos_banner (#34695) Signed-off-by: Trishna Guha --- lib/ansible/modules/network/nxos/nxos_banner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/network/nxos/nxos_banner.py b/lib/ansible/modules/network/nxos/nxos_banner.py index 40530e0662a..7f02dd70395 100644 --- a/lib/ansible/modules/network/nxos/nxos_banner.py +++ b/lib/ansible/modules/network/nxos/nxos_banner.py @@ -117,6 +117,8 @@ def map_config_to_obj(module): if isinstance(output, dict): output = list(output.values())[0] + if isinstance(output, dict): + output = list(output.values())[0] obj = {'banner': module.params['banner'], 'state': 'absent'} if output: