mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
fix nxos_banner (#34695)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
df8b01aaf7
commit
303894dd17
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,8 @@ def map_config_to_obj(module):
|
||||||
if "Invalid command" in output:
|
if "Invalid command" in output:
|
||||||
module.fail_json(msg="banner: exec may not be supported on this platform. Possible values are : exec | motd")
|
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):
|
if isinstance(output, dict):
|
||||||
output = list(output.values())[0]
|
output = list(output.values())[0]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue