mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
user: Cast all arguments to string before passing to run_command (#4398)
Fixes #4397
This commit is contained in:
parent
0b01e53b16
commit
6c439a4882
1 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,8 @@ class User(object):
|
|||
self.module.debug('In check mode, would have run: "%s"' % cmd)
|
||||
return (0, '','')
|
||||
else:
|
||||
# cast all args to strings ansible-modules-core/issues/4397
|
||||
cmd = [str(x) for x in cmd]
|
||||
return self.module.run_command(cmd, use_unsafe_shell=use_unsafe_shell, data=data)
|
||||
|
||||
def remove_user_userdel(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue