minor update for nxos
This fixes a minor bug in the nxos config module to ensure that both the cli and nxapi transport return the running config as a string and not a list object.
This commit is contained in:
parent
633b16d116
commit
1733bf4053
1 changed files with 2 additions and 4 deletions
|
@ -203,10 +203,8 @@ class NetworkModule(AnsibleModule):
|
|||
if self.params.get('include_defaults'):
|
||||
cmd += ' all'
|
||||
|
||||
if self.params['transport'] == 'cli':
|
||||
return self.execute(cmd)[0]
|
||||
else:
|
||||
return self.execute(cmd)
|
||||
response = self.execute(cmd)
|
||||
return response[0]
|
||||
|
||||
def get_module(**kwargs):
|
||||
"""Return instance of NetworkModule
|
||||
|
|
Loading…
Reference in a new issue