diff options
author | Matt Clay <matt@mystile.com> | 2016-02-03 23:19:17 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2016-02-03 23:19:17 -0800 |
commit | 2645113eda48bf26cb202da7e62a6edcacf88bc7 (patch) | |
tree | b434f130cdaf2d20ad7497d8e393973d380d2ade /system | |
parent | 6ff4c4cb7146e2515805027e387a10b57f9c2042 (diff) | |
download | ansible-modules-core-2645113eda48bf26cb202da7e62a6edcacf88bc7.tar.gz |
Make modify_user_usermod honor check mode on AIX.
Diffstat (limited to 'system')
-rwxr-xr-x | system/user.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/user.py b/system/user.py index 29d84bf7..6273b23f 100755 --- a/system/user.py +++ b/system/user.py @@ -1869,13 +1869,15 @@ class AIX(User): if len(cmd) == 1: (rc, out, err) = (None, '', '') elif self.module.check_mode: - return (True, '', '') + return (0, '', '') else: cmd.append(self.name) (rc, out, err) = self.execute_command(cmd) # set password with chpasswd if self.update_password == 'always' and self.password is not None and info[1] != self.password: + if self.module.check_mode: + return (0, '', '') cmd = [] cmd.append(self.module.get_bin_path('chpasswd', True)) cmd.append('-e') |