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

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/27691/head
Trishna Guha 7 years ago committed by GitHub
parent 9965435b56
commit 91a9564b3b

@ -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():

Loading…
Cancel
Save