mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
bugfix in nxos shared module for including defaults
This commit is contained in:
@@ -180,7 +180,7 @@ class NxosModule(AnsibleModule):
|
|||||||
|
|
||||||
def get_config(self):
|
def get_config(self):
|
||||||
cmd = 'show running-config'
|
cmd = 'show running-config'
|
||||||
if self.params['include_defaults']:
|
if self.params.get('include_defaults'):
|
||||||
cmd += ' all'
|
cmd += ' all'
|
||||||
if self.params['transport'] == 'cli':
|
if self.params['transport'] == 'cli':
|
||||||
return self.execute(cmd)[0]
|
return self.execute(cmd)[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user