-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2175 from arcivanov/issue_2169
Provides a patch to stop using urllib3 deprecated APIs until the upgrade to latest OpenAPI Generator (>6.4.0)
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/kubernetes/client/exceptions.py b/kubernetes/client/exceptions.py | ||
index c7c152b5..1e23d80a 100644 | ||
--- a/kubernetes/client/exceptions.py | ||
+++ b/kubernetes/client/exceptions.py | ||
@@ -88,7 +88,7 @@ class ApiException(OpenApiException): | ||
self.status = http_resp.status | ||
self.reason = http_resp.reason | ||
self.body = http_resp.data | ||
- self.headers = http_resp.getheaders() | ||
+ self.headers = http_resp.headers | ||
else: | ||
self.status = status | ||
self.reason = reason |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters