From 8cb1fb838b364091a9e1190aa7e1004d0d2f7e97 Mon Sep 17 00:00:00 2001 From: tpierre Date: Sat, 23 Nov 2024 16:44:26 +0100 Subject: [PATCH 1/2] fix(proxmox.py): validate_certs in session.get args --- .../fragments/9178-fix-proxmox-connection-without-certs.yml | 2 ++ plugins/inventory/proxmox.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml diff --git a/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml b/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml new file mode 100644 index 00000000000..127e04b7973 --- /dev/null +++ b/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml @@ -0,0 +1,2 @@ +bugfixes: + - proxmox inventory plugin - fix connection without certificates diff --git a/plugins/inventory/proxmox.py b/plugins/inventory/proxmox.py index 3ce4f789a37..acd0c5b8b02 100644 --- a/plugins/inventory/proxmox.py +++ b/plugins/inventory/proxmox.py @@ -312,7 +312,7 @@ def _get_json(self, url, ignore_errors=None): data = [] s = self._get_session() while True: - ret = s.get(url, headers=self.headers) + ret = s.get(url, headers=self.headers, verify=s.verify) if ignore_errors and ret.status_code in ignore_errors: break ret.raise_for_status() From 759fc6837cca1f1052aa10168e4662533dea912f Mon Sep 17 00:00:00 2001 From: Tpierre <53569803+t-pierre@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:21:39 +0100 Subject: [PATCH 2/2] Update changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml Co-authored-by: Felix Fontein --- .../fragments/9178-fix-proxmox-connection-without-certs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml b/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml index 127e04b7973..7105062d2a3 100644 --- a/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml +++ b/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml @@ -1,2 +1,2 @@ bugfixes: - - proxmox inventory plugin - fix connection without certificates + - proxmox inventory plugin - fix connection without certificates (https://github.com/ansible-collections/community.general/pull/9178).