Browse Source

Merge "Add square brackets for ipv6 based hosts"

changes/27/119627/6
Jenkins 7 years ago
committed by Gerrit Code Review
parent
commit
37ed443727
  1. 3
      oslo/messaging/_drivers/impl_qpid.py

3
oslo/messaging/_drivers/impl_qpid.py

@ -478,6 +478,9 @@ class Connection(object):
hostname, port = netutils.parse_host_port(
adr, default_port=5672)
if ':' in hostname:
hostname = '[' + hostname + ']'
params = {
'host': '%s:%d' % (hostname, port),
'username': self.conf.qpid_username,

Loading…
Cancel
Save