diff --git a/network/junos/junos_config.py b/network/junos/junos_config.py index 017b2b1c36c..d7458d956c7 100644 --- a/network/junos/junos_config.py +++ b/network/junos/junos_config.py @@ -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']: