diff --git a/.gitreview b/.gitreview index be7b3b49..d6d52e29 100644 --- a/.gitreview +++ b/.gitreview @@ -2,3 +2,4 @@ host=review.opendev.org port=29418 project=openstack/python-magnumclient.git +defaultbranch=stable/2024.2 diff --git a/magnumclient/common/httpclient.py b/magnumclient/common/httpclient.py index 7a6f51e7..32722168 100644 --- a/magnumclient/common/httpclient.py +++ b/magnumclient/common/httpclient.py @@ -307,7 +307,7 @@ def connect(self): if self.cert_file: context.load_cert_chain(self.cert_file, self.key_file) - self.sock = context.wrap_socket(sock) + self.sock = context.wrap_socket(sock, server_hostname=self.host) @staticmethod def get_system_ca_file(): diff --git a/tox.ini b/tox.ini index 3b7cf64e..6c71eeb8 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.2} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = @@ -19,7 +19,7 @@ commands = [testenv:bandit] basepython = python3 deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.2} -r{toxinidir}/test-requirements.txt commands = bandit -r magnumclient -x tests -n5 -ll