Skip to content

Commit 4cf1c3d

Browse files
committed
apply rest_urllib_headers.diff
1 parent 2dffaad commit 4cf1c3d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

kubernetes/client/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, status=None, reason=None, http_resp=None):
107107
self.status = http_resp.status
108108
self.reason = http_resp.reason
109109
self.body = http_resp.data
110-
self.headers = http_resp.getheaders()
110+
self.headers = http_resp.headers
111111
else:
112112
self.status = status
113113
self.reason = reason

scripts/update-client.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ sed -i'' "s,^DEVELOPMENT_STATUS = .*,DEVELOPMENT_STATUS = \\\"${DEVELOPMENT_STAT
7070
echo ">>> patching client..."
7171
git apply "${SCRIPT_ROOT}/rest_client_patch.diff"
7272
git apply "${SCRIPT_ROOT}/api_client_patch.diff"
73-
# The following is commented out due to:
74-
# AttributeError: 'RESTResponse' object has no attribute 'headers'
75-
# OpenAPI client generator prior to 6.4.0 uses deprecated urllib3 APIs.
76-
# git apply "${SCRIPT_ROOT}/rest_urllib_headers.diff"
73+
git apply "${SCRIPT_ROOT}/rest_urllib_headers.diff"
7774

7875
echo ">>> Done."

0 commit comments

Comments
 (0)