summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/messaging
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/messaging')
-rw-r--r--lib/ansible/modules/messaging/rabbitmq_vhost.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ansible/modules/messaging/rabbitmq_vhost.py b/lib/ansible/modules/messaging/rabbitmq_vhost.py
index bc85d92ec9..59d8e61a2d 100644
--- a/lib/ansible/modules/messaging/rabbitmq_vhost.py
+++ b/lib/ansible/modules/messaging/rabbitmq_vhost.py
@@ -76,6 +76,9 @@ class RabbitMqVhost(object):
vhosts = self._exec(['list_vhosts', 'name', 'tracing'], True)
for vhost in vhosts:
+ if '\t' not in vhost:
+ continue
+
name, tracing = vhost.split('\t')
if name == self.name:
self._tracing = self.module.boolean(tracing)