Enable nxapi nxos_banner test (#35033)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2018-01-18 11:50:15 +05:30 committed by GitHub
commit 8a6d699198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 119 additions and 24 deletions

View file

@ -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: