modify indent to avoid re-run of src template fail (#27686)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
9965435b56
commit
91a9564b3b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue