diff --git a/lib/ansible/modules/network/netconf/netconf_config.py b/lib/ansible/modules/network/netconf/netconf_config.py index f4c97b51945..472ced5a78e 100644 --- a/lib/ansible/modules/network/netconf/netconf_config.py +++ b/lib/ansible/modules/network/netconf/netconf_config.py @@ -349,7 +349,7 @@ def main(): result['changed'] = True module.exit_json(**result) - if lock: + if execute_lock: conn.lock(target=target) locked = True if before is None: