mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
- fix check_mode test to avoid errors
- correct test mode check to ensure it returns and doesnt apply changes (via jmainguy)
This commit is contained in:
@@ -333,8 +333,8 @@ def user_mod(cursor, user, host, host_all, password, encrypted, new_priv, append
|
||||
return changed
|
||||
|
||||
def user_delete(cursor, user, host, host_all, check_mode):
|
||||
if module.check_mode:
|
||||
changed = True
|
||||
if check_mode:
|
||||
return True
|
||||
|
||||
if host_all:
|
||||
hostnames = user_get_hostnames(cursor, user)
|
||||
|
||||
Reference in New Issue
Block a user