mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
fixes junos_config to be idempotent when confirming a commit (#4946)
The junos_config module would always return true when confirming a commit This changes the module to now check first making the feature idempontent
This commit is contained in:
parent
cb9ec9f802
commit
b06123e986
1 changed files with 2 additions and 3 deletions
|
@ -231,9 +231,8 @@ def zeroize_config(module, result):
|
|||
result['changed'] = True
|
||||
|
||||
def confirm_config(module, result):
|
||||
if not module.check_mode:
|
||||
module.connection.commit_config()
|
||||
result['changed'] = True
|
||||
checkonly = module.check_mode
|
||||
result['changed'] = module.connection.confirm_commit(checkonly)
|
||||
|
||||
def run(module, result):
|
||||
if module.params['rollback']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue