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:
Peter Sprygada 2016-01-31 22:58:08 -05:00
parent 633b16d116
commit 1733bf4053

View file

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