summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Giusti <kgiusti@gmail.com>2018-10-18 11:41:23 -0400
committerKenneth Giusti <kgiusti@gmail.com>2018-10-18 13:08:13 -0400
commit92b4080654b9ecb68250905e45eec65f41e5b161 (patch)
treef5ca6da84b90e4a97c6aba8e8df24e76772f3aa4
parente0de93c7934b2e06b18ac946e80df2ff7095152c (diff)
downloadoslo-messaging-92b4080654b9ecb68250905e45eec65f41e5b161.tar.gz
Use '/' for the vhost if the transport_url has no trailing '/'9.1.1
This change https://review.openstack.org/#/c/599912/ accidentally removed setting the virtual host to '/' if none were provided in the transport_url configuration option. Closes-Bug: #1798241 Change-Id: I2dbcec3f77eb7cc513350b00ea020cc8faaecec1
-rw-r--r--oslo_messaging/_drivers/impl_rabbit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py
index d21f46e..17b6bab 100644
--- a/oslo_messaging/_drivers/impl_rabbit.py
+++ b/oslo_messaging/_drivers/impl_rabbit.py
@@ -595,7 +595,7 @@ class Connection(object):
parse.quote(host.password or default_password),
self._parse_url_hostname(host.hostname) or default_hostname,
str(host.port or 5672),
- url.virtual_host)
+ url.virtual_host or '')
def _parse_url_hostname(self, hostname):
"""Handles hostname returned from urlparse and checks whether it's