Skip to content

Commit fd9dac3

Browse files
committed
hotfix kubernetes-client#866: switch the order of content-type so JSON merge patch is
used by default
1 parent ba8b9fa commit fd9dac3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kubernetes/client/apis/custom_objects_api.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
16571657

16581658
# HTTP header `Content-Type`
16591659
header_params['Content-Type'] = self.api_client.\
1660-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1660+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
16611661

16621662
# Authentication setting
16631663
auth_settings = ['BearerToken']
@@ -1781,7 +1781,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
17811781

17821782
# HTTP header `Content-Type`
17831783
header_params['Content-Type'] = self.api_client.\
1784-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1784+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
17851785

17861786
# Authentication setting
17871787
auth_settings = ['BearerToken']
@@ -1905,7 +1905,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
19051905

19061906
# HTTP header `Content-Type`
19071907
header_params['Content-Type'] = self.api_client.\
1908-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1908+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
19091909

19101910
# Authentication setting
19111911
auth_settings = ['BearerToken']
@@ -2036,7 +2036,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
20362036

20372037
# HTTP header `Content-Type`
20382038
header_params['Content-Type'] = self.api_client.\
2039-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
2039+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
20402040

20412041
# Authentication setting
20422042
auth_settings = ['BearerToken']
@@ -2167,7 +2167,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
21672167

21682168
# HTTP header `Content-Type`
21692169
header_params['Content-Type'] = self.api_client.\
2170-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
2170+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
21712171

21722172
# Authentication setting
21732173
auth_settings = ['BearerToken']
@@ -2298,7 +2298,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
22982298

22992299
# HTTP header `Content-Type`
23002300
header_params['Content-Type'] = self.api_client.\
2301-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
2301+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
23022302

23032303
# Authentication setting
23042304
auth_settings = ['BearerToken']

0 commit comments

Comments
 (0)