diff options
author | Trishna Guha <trishnaguha17@gmail.com> | 2018-01-11 21:13:00 +0530 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-01-15 10:40:17 -0800 |
commit | 0b0b02fd7252bb152adae98fbd6a185639525532 (patch) | |
tree | 83ad6bc051c18af46628317fdd32dee0d5c5c3ee | |
parent | 6e594340c2a9469719dca666e9e1c2b07faf5741 (diff) | |
download | ansible-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.py | 2 |
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: |