Merge pull request #1913 from yliaog/master

Fixed scripts/rest_client_patch.diff, it is corrupt and cannot be applied
This commit is contained in:
Kubernetes Prow Robot 2022-10-11 11:19:02 -07:00 committed by GitHub
commit c3f4f1b52b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
diff --git a/kubernetes/client/rest.py b/kubernetes/client/rest.py
index 65fbe95..e174317 100644
index 5716565df..b788bf7d2 100644
--- a/kubernetes/client/rest.py
+++ b/kubernetes/client/rest.py
@@ -152,6 +152,10 @@ class RESTClientObject(object):
@@ -151,7 +151,12 @@ class RESTClientObject(object):
if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
if query_params:
url += '?' + urlencode(query_params)
- if re.search('json', headers['Content-Type'], re.IGNORECASE):