Skip to content

Commit

Permalink
fix for python3-requests 2.32.2
Browse files Browse the repository at this point in the history
Signed-off-by: eaglegai <eaglegai@163.com>
  • Loading branch information
eaglegai committed Jun 24, 2024
1 parent db85945 commit a1ce543
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudinit/sources/DataSourceLXD.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ class LXDSocketAdapter(HTTPAdapter):
def get_connection(self, url, proxies=None):
return SocketConnectionPool(LXD_SOCKET_PATH)

# Fix for requests 2.32.2+:
# https://github.com/psf/requests/pull/6710
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
return self.get_connection(request.url, proxies)


def _raw_instance_data_to_dict(metadata_type: str, metadata_value) -> dict:
"""Convert raw instance data from str, bytes, YAML to dict
Expand Down

0 comments on commit a1ce543

Please sign in to comment.