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
reviewable/pr18780/r1
Peter Sprygada 8 years ago committed by GitHub
parent 19be0da3b0
commit 3a2cfadb31

@ -228,9 +228,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…
Cancel
Save