diff --git a/lib/ansible/modules/messaging/rabbitmq_vhost.py b/lib/ansible/modules/messaging/rabbitmq_vhost.py index bc85d92ec92..59d8e61a2dc 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)