Commit b79d7a60 by Chris Hoffman

Using new qualified executable

parent c94ec20a
...@@ -92,7 +92,7 @@ class RabbitMqUser(object): ...@@ -92,7 +92,7 @@ class RabbitMqUser(object):
self.username = username self.username = username
self.password = password self.password = password
if tags is None: if tags is None:
self.tags = [] self.tags = list()
else: else:
self.tags = tags.split(',') self.tags = tags.split(',')
...@@ -109,7 +109,7 @@ class RabbitMqUser(object): ...@@ -109,7 +109,7 @@ class RabbitMqUser(object):
self._rabbitmqctl = module.get_bin_path("rabbitmqctl", True) self._rabbitmqctl = module.get_bin_path("rabbitmqctl", True)
def _exec(self, args): def _exec(self, args):
cmd = ["rabbitmqctl", "-q"] cmd = [self._rabbitmqctl, "-q"]
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()
...@@ -126,7 +126,7 @@ class RabbitMqUser(object): ...@@ -126,7 +126,7 @@ class RabbitMqUser(object):
if tags != '': if tags != '':
self._tags = tags.split(',') self._tags = tags.split(',')
else: else:
self._tags = [] self._tags = list()
self._permissions = self._get_permissions() self._permissions = self._get_permissions()
......
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