mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 23:51:23 -07:00
fix: check execute_lock boolean, not lock string var (#45329)
This commit is contained in:
parent
1771874ac8
commit
5e67981dd2
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ def main():
|
||||||
result['changed'] = True
|
result['changed'] = True
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
if lock:
|
if execute_lock:
|
||||||
conn.lock(target=target)
|
conn.lock(target=target)
|
||||||
locked = True
|
locked = True
|
||||||
if before is None:
|
if before is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue