- 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:
Lee H 2016-01-14 08:53:22 -05:00 committed by Matt Clay
parent aed44e8886
commit 8e84ba71ae

View file

@ -333,8 +333,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)