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'):
|
if self.params.get('include_defaults'):
|
||||||
cmd += ' all'
|
cmd += ' all'
|
||||||
|
|
||||||
if self.params['transport'] == 'cli':
|
response = self.execute(cmd)
|
||||||
return self.execute(cmd)[0]
|
return response[0]
|
||||||
else:
|
|
||||||
return self.execute(cmd)
|
|
||||||
|
|
||||||
def get_module(**kwargs):
|
def get_module(**kwargs):
|
||||||
"""Return instance of NetworkModule
|
"""Return instance of NetworkModule
|
||||||
|
|
Loading…
Reference in a new issue