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'): 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