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

pull/18437/head
Nick 6 years ago committed by Peter Sprygada
parent 1771874ac8
commit 5e67981dd2

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

Loading…
Cancel
Save