summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrishna Guha <trishnaguha17@gmail.com>2018-01-11 21:13:00 +0530
committerToshio Kuratomi <a.badger@gmail.com>2018-01-15 10:40:17 -0800
commit0b0b02fd7252bb152adae98fbd6a185639525532 (patch)
tree83ad6bc051c18af46628317fdd32dee0d5c5c3ee
parent6e594340c2a9469719dca666e9e1c2b07faf5741 (diff)
downloadansible-0b0b02fd7252bb152adae98fbd6a185639525532.tar.gz
fix nxos_banner (#34695)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 303894dd174091ab262d894737ee515ddd17f8ae)
-rw-r--r--lib/ansible/modules/network/nxos/nxos_banner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/modules/network/nxos/nxos_banner.py b/lib/ansible/modules/network/nxos/nxos_banner.py
index 69f9005662..aabe1dc0de 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: