mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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