mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00: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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user