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
reviewable/pr18780/r1
Peter Sprygada 8 years ago
parent db18577df1
commit c3c964475c

@ -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…
Cancel
Save