Merge pull request #2812 from leehuk/fix_check_mode_error
- fix check_mode test to avoid errors
This commit is contained in:
commit
0c0929ab6e
1 changed files with 2 additions and 2 deletions
|
@ -326,8 +326,8 @@ def user_mod(cursor, user, host, host_all, password, encrypted, new_priv, append
|
||||||
return changed
|
return changed
|
||||||
|
|
||||||
def user_delete(cursor, user, host, host_all, check_mode):
|
def user_delete(cursor, user, host, host_all, check_mode):
|
||||||
if module.check_mode:
|
if check_mode:
|
||||||
changed = True
|
return True
|
||||||
|
|
||||||
if host_all:
|
if host_all:
|
||||||
hostnames = user_get_hostnames(cursor, user)
|
hostnames = user_get_hostnames(cursor, user)
|
||||||
|
|
Loading…
Reference in a new issue