diff --git a/openstack/common/messaging/_utils.py b/openstack/common/messaging/_utils.py index 049592601..2497fcd8e 100644 --- a/openstack/common/messaging/_utils.py +++ b/openstack/common/messaging/_utils.py @@ -152,6 +152,6 @@ def exchange_from_url(self, url, default_exchange=None): if not url.path.startswith('/'): return default_exchange - parts = u.path[1:].split('/') + parts = url.path[1:].split('/') return parts[0] if parts[0] else default_exchange