Skip to content

Commit f0fc117

Browse files
committed
hotfix for patching custom objects issue#866
1 parent 1a85f82 commit f0fc117

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

kubernetes/client/api/custom_objects_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3349,7 +3349,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
33493349
# HTTP header `Content-Type`
33503350
content_types_list = local_var_params.get('_content_type',
33513351
self.api_client.select_header_content_type(
3352-
['application/json-patch+json', 'application/merge-patch+json'],
3352+
['application/merge-patch+json'],
33533353
'PATCH', body_params)) # noqa: E501
33543354
if content_types_list:
33553355
header_params['Content-Type'] = content_types_list
@@ -3563,7 +3563,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
35633563
# HTTP header `Content-Type`
35643564
content_types_list = local_var_params.get('_content_type',
35653565
self.api_client.select_header_content_type(
3566-
['application/json-patch+json', 'application/merge-patch+json'],
3566+
['application/merge-patch+json'],
35673567
'PATCH', body_params)) # noqa: E501
35683568
if content_types_list:
35693569
header_params['Content-Type'] = content_types_list
@@ -3777,7 +3777,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
37773777
# HTTP header `Content-Type`
37783778
content_types_list = local_var_params.get('_content_type',
37793779
self.api_client.select_header_content_type(
3780-
['application/json-patch+json', 'application/merge-patch+json'],
3780+
['application/merge-patch+json'],
37813781
'PATCH', body_params)) # noqa: E501
37823782
if content_types_list:
37833783
header_params['Content-Type'] = content_types_list
@@ -4001,7 +4001,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
40014001
# HTTP header `Content-Type`
40024002
content_types_list = local_var_params.get('_content_type',
40034003
self.api_client.select_header_content_type(
4004-
['application/json-patch+json', 'application/merge-patch+json'],
4004+
['application/merge-patch+json'],
40054005
'PATCH', body_params)) # noqa: E501
40064006
if content_types_list:
40074007
header_params['Content-Type'] = content_types_list
@@ -4225,7 +4225,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
42254225
# HTTP header `Content-Type`
42264226
content_types_list = local_var_params.get('_content_type',
42274227
self.api_client.select_header_content_type(
4228-
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml'],
4228+
['application/merge-patch+json', 'application/apply-patch+yaml'],
42294229
'PATCH', body_params)) # noqa: E501
42304230
if content_types_list:
42314231
header_params['Content-Type'] = content_types_list
@@ -4449,7 +4449,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
44494449
# HTTP header `Content-Type`
44504450
content_types_list = local_var_params.get('_content_type',
44514451
self.api_client.select_header_content_type(
4452-
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml'],
4452+
['application/merge-patch+json', 'application/apply-patch+yaml'],
44534453
'PATCH', body_params)) # noqa: E501
44544454
if content_types_list:
44554455
header_params['Content-Type'] = content_types_list

0 commit comments

Comments
 (0)