From c94ec20a1694359941e2bb778a2c23670fce08b5 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Sun, 10 Feb 2013 14:38:00 -0500 Subject: [PATCH] Getting fully qualified path for executable --- library/rabbitmq_plugin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/rabbitmq_plugin b/library/rabbitmq_plugin index 0fe0d91a5b..6e724c743f 100644 --- a/library/rabbitmq_plugin +++ b/library/rabbitmq_plugin @@ -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()