mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Enable nxapi nxos_banner test (#35033)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -117,9 +117,17 @@ def map_config_to_obj(module):
|
||||
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]
|
||||
output = list(output.values())
|
||||
if output != []:
|
||||
output = output[0]
|
||||
else:
|
||||
output = ''
|
||||
if isinstance(output, dict):
|
||||
output = list(output.values())[0]
|
||||
output = list(output.values())
|
||||
if output != []:
|
||||
output = output[0]
|
||||
else:
|
||||
output = ''
|
||||
|
||||
obj = {'banner': module.params['banner'], 'state': 'absent'}
|
||||
if output:
|
||||
|
||||
Reference in New Issue
Block a user