Skip to content

Fix use of deprecated parameters in module_utils/urls.py #80490

Closed

Description

@mattclay

Summary

In Python 3.12 the deprecated key_file, cert_file and check_hostname parameters have been removed.

There is code which still attempts to set these, such as:

def _build_https_connection(self, host, **kwargs):
kwargs.update({
'cert_file': self.client_cert,
'key_file': self.client_key,
})

Which results in an error under Python 3.12:

>       return httplib.HTTPSConnection(host, **kwargs)
E       TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'cert_file'

Issue Type

Feature Idea

Component Name

module_utils/urls.py

Activity

  1. added
    P2Priority 2 - Issue Blocks Release
    on Apr 12, 2023
  2. ansibot commented on Apr 12, 2023

    @ansibot
    Contributor

    Files identified in the description:

    If these files are incorrect, please update the component name section of the description or use the !component bot command.

    click here for bot help

  3. added
    featureThis issue/PR relates to a feature request.
    needs_triageNeeds a first human triage before being processed.
    on Apr 12, 2023
  4. removed
    needs_triageNeeds a first human triage before being processed.
    on Apr 12, 2023
  5. Krishhhnaa commented on Apr 12, 2023

    @Krishhhnaa

    Please assign this issue to me

  6. mattclay commented on Apr 17, 2023

    @mattclay
    MemberAuthor

    @Krishhhnaa Thank you for your interest in contributing to the Ansible project. This issue was created primarily for the Ansible Core Team's own tracking, and one of our team members will be working on it. If you haven't already, I recommend taking a look at our contributor documentation to help identify areas where you can help.

  7. self-assigned this
    on Apr 25, 2023
  8. locked and limited conversation to collaborators on May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Priority 2 - Issue Blocks Releaseaffects_2.16featureThis issue/PR relates to a feature request.has_prThis issue has an associated PR.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions