From 5e67981dd2d8c909841088e00bb2fd95be2324d0 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 10 Oct 2018 13:46:00 +1100 Subject: [PATCH] fix: check execute_lock boolean, not lock string var (#45329) --- lib/ansible/modules/network/netconf/netconf_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: