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)