From 13d2eb65681c8b99288715b624ae23d68dc33a84 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 9 Aug 2017 16:47:00 -0400 Subject: [PATCH] fix incorrect joingin of command for chpasswd fixes #24638 --- lib/ansible/modules/system/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/system/user.py b/lib/ansible/modules/system/user.py index 1ec325f532..4ac7c4ece4 100644 --- a/lib/ansible/modules/system/user.py +++ b/lib/ansible/modules/system/user.py @@ -1870,7 +1870,7 @@ class AIX(User): cmd.append(self.module.get_bin_path('chpasswd', True)) cmd.append('-e') cmd.append('-c') - self.execute_command(' '.join(cmd), data="%s:%s" % (self.name, self.password)) + self.execute_command(cmd, data="%s:%s" % (self.name, self.password)) return (rc, out, err) @@ -1942,7 +1942,7 @@ class AIX(User): cmd.append(self.module.get_bin_path('chpasswd', True)) cmd.append('-e') cmd.append('-c') - (rc2, out2, err2) = self.execute_command(' '.join(cmd), data="%s:%s" % (self.name, self.password)) + (rc2, out2, err2) = self.execute_command(cmd, data="%s:%s" % (self.name, self.password)) else: (rc2, out2, err2) = (None, '', '')