mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Enable nxapi nxos_banner test (#35033)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
f806a58a5e
commit
8a6d699198
8 changed files with 119 additions and 24 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue