Skip to content

Commit 16d4a4d

Browse files
authored
style: fix ruff rule PLC0415 (#368)
* style: fix ruff rule PLC0415 * feat(inventory): enable cert warnning on non valid cert
1 parent d3ab941 commit 16d4a4d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

plugins/inventory/proxmox.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,6 @@ def _get_session(self):
270270
return self.session
271271

272272
def _get_auth(self):
273-
validate_certs = self.get_option("validate_certs")
274-
275-
if validate_certs is False:
276-
from requests.packages.urllib3 import disable_warnings
277-
278-
disable_warnings()
279-
280273
if self.proxmox_password:
281274
credentials = urlencode({"username": self.proxmox_user, "password": self.proxmox_password})
282275
a = self._get_session()

0 commit comments

Comments
 (0)