modify indent to avoid re-run of src template fail (#27686)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-08-03 12:58:27 +05:30 committed by GitHub
parent 9965435b56
commit 91a9564b3b

View file

@ -276,7 +276,7 @@ from ansible.module_utils.eos import check_args
def get_candidate(module):
candidate = NetworkConfig(indent=3)
candidate = NetworkConfig(indent=2)
if module.params['src']:
candidate.load(module.params['src'])
elif module.params['lines']:
@ -295,7 +295,7 @@ def get_running_config(module, config=None):
if module.params['defaults']:
flags.append('all')
contents = get_config(module, flags=flags)
return NetworkConfig(indent=3, contents=contents)
return NetworkConfig(indent=2, contents=contents)
def main():