fix: check execute_lock boolean, not lock string var (#45329)

This commit is contained in:
Nick 2018-10-10 13:46:00 +11:00 committed by Peter Sprygada
parent 1771874ac8
commit 5e67981dd2

View file

@ -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: