fix nxos_banner (#34695)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/34742/head
Trishna Guha 7 years ago committed by GitHub
parent df8b01aaf7
commit 303894dd17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,6 +115,8 @@ def map_config_to_obj(module):
if "Invalid command" in output:
module.fail_json(msg="banner: exec may not be supported on this platform. Possible values are : exec | motd")
if isinstance(output, dict):
output = list(output.values())[0]
if isinstance(output, dict):
output = list(output.values())[0]

Loading…
Cancel
Save