mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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):
|
def get_candidate(module):
|
||||||
candidate = NetworkConfig(indent=3)
|
candidate = NetworkConfig(indent=2)
|
||||||
if module.params['src']:
|
if module.params['src']:
|
||||||
candidate.load(module.params['src'])
|
candidate.load(module.params['src'])
|
||||||
elif module.params['lines']:
|
elif module.params['lines']:
|
||||||
|
@ -295,7 +295,7 @@ def get_running_config(module, config=None):
|
||||||
if module.params['defaults']:
|
if module.params['defaults']:
|
||||||
flags.append('all')
|
flags.append('all')
|
||||||
contents = get_config(module, flags=flags)
|
contents = get_config(module, flags=flags)
|
||||||
return NetworkConfig(indent=3, contents=contents)
|
return NetworkConfig(indent=2, contents=contents)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue