mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ejabberd_user: better error when command not installed (#7028)
* ejabberd_user: better error when command not installed * add changelog frag
This commit is contained in:
parent
b46d5d8197
commit
3a7044e2b8
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/6949-ejabberdctl-error.yml
Normal file
2
changelogs/fragments/6949-ejabberdctl-error.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- ejabberd_user - provide meaningful error message when the ``ejabberdctl`` command is not found (https://github.com/ansible-collections/community.general/pull/7028, https://github.com/ansible-collections/community.general/issues/6949).
|
|
@ -122,7 +122,7 @@ class EjabberdUser(object):
|
||||||
""" This method will run the any command specified and return the
|
""" This method will run the any command specified and return the
|
||||||
returns using the Ansible common module
|
returns using the Ansible common module
|
||||||
"""
|
"""
|
||||||
cmd = [self.module.get_bin_path('ejabberdctl'), cmd] + options
|
cmd = [self.module.get_bin_path('ejabberdctl', required=True), cmd] + options
|
||||||
self.log('command: %s' % " ".join(cmd))
|
self.log('command: %s' % " ".join(cmd))
|
||||||
return self.module.run_command(cmd)
|
return self.module.run_command(cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue