fix bug in ios_template when include_defaults is set to true
Module was ignoring include_defaults argument. This fixes the issue such that the correct configuration is returned
This commit is contained in:
parent
8a87d7ff11
commit
d6e16ded3f
1 changed files with 2 additions and 1 deletions
|
@ -119,8 +119,9 @@ from ansible.module_utils.ios import NetworkModule, NetworkError
|
||||||
|
|
||||||
def get_config(module):
|
def get_config(module):
|
||||||
config = module.params['config'] or dict()
|
config = module.params['config'] or dict()
|
||||||
|
defaults = module.params['include_defaults']
|
||||||
if not config and not module.params['force']:
|
if not config and not module.params['force']:
|
||||||
config = module.config.get_config()
|
config = module.config.get_config(include_defaults=defaults)
|
||||||
return config
|
return config
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue