Commit c94ec20a by Chris Hoffman

Getting fully qualified path for executable

parent 5a4ff6ca
......@@ -54,9 +54,10 @@ examples:
class RabbitMqPlugins(object):
def __init__(self, module):
self.module = module
self._rabbitmq_plugins = module.get_bin_path("rabbitmq-plugins", True)
def _exec(self, args):
cmd = ["rabbitmq-plugins"]
cmd = [self._rabbitmq_plugins]
rc, out, err = self.module.run_command(cmd + args, check_rc=True)
return out.splitlines()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment