summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorNick <nick.p.doyle@gmail.com>2018-10-10 13:46:00 +1100
committerPeter Sprygada <privateip@users.noreply.github.com>2018-10-09 22:46:00 -0400
commit5e67981dd2d8c909841088e00bb2fd95be2324d0 (patch)
treed9be59e8fe768e9ee416c3eef0fc322477541cbd /lib/ansible
parent1771874ac86795da86f175d776410b835f10a139 (diff)
downloadansible-5e67981dd2d8c909841088e00bb2fd95be2324d0.tar.gz
fix: check execute_lock boolean, not lock string var (#45329)
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/modules/network/netconf/netconf_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/network/netconf/netconf_config.py b/lib/ansible/modules/network/netconf/netconf_config.py
index f4c97b5194..472ced5a78 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: