mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Getting fully qualified path for executable
This commit is contained in:
parent
5a4ff6ca60
commit
c94ec20a16
1 changed files with 2 additions and 1 deletions
|
@ -54,9 +54,10 @@ examples:
|
||||||
class RabbitMqPlugins(object):
|
class RabbitMqPlugins(object):
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
self.module = module
|
self.module = module
|
||||||
|
self._rabbitmq_plugins = module.get_bin_path("rabbitmq-plugins", True)
|
||||||
|
|
||||||
def _exec(self, args):
|
def _exec(self, args):
|
||||||
cmd = ["rabbitmq-plugins"]
|
cmd = [self._rabbitmq_plugins]
|
||||||
rc, out, err = self.module.run_command(cmd + args, check_rc=True)
|
rc, out, err = self.module.run_command(cmd + args, check_rc=True)
|
||||||
return out.splitlines()
|
return out.splitlines()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue