@@ -2548,7 +2548,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
25482548
25492549 # HTTP header `Content-Type`
25502550 header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2551- ['application/merge-patch+json' ]) # noqa: E501
2551+ ['application/json-patch+json' if isinstance ( body , list ) else 'application/ merge-patch+json' ]) # noqa: E501
25522552
25532553 # Authentication setting
25542554 auth_settings = ['BearerToken' ] # noqa: E501
@@ -2717,7 +2717,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
27172717
27182718 # HTTP header `Content-Type`
27192719 header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2720- ['application/merge-patch+json' ]) # noqa: E501
2720+ ['application/json-patch+json' if isinstance ( body , list ) else 'application/ merge-patch+json' ]) # noqa: E501
27212721
27222722 # Authentication setting
27232723 auth_settings = ['BearerToken' ] # noqa: E501
@@ -2886,7 +2886,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
28862886
28872887 # HTTP header `Content-Type`
28882888 header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2889- ['application/merge-patch+json' ]) # noqa: E501
2889+ ['application/json-patch+json' if isinstance ( body , list ) else 'application/ merge-patch+json' ]) # noqa: E501
28902890
28912891 # Authentication setting
28922892 auth_settings = ['BearerToken' ] # noqa: E501
@@ -3064,7 +3064,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
30643064
30653065 # HTTP header `Content-Type`
30663066 header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3067- ['application/merge-patch+json' ]) # noqa: E501
3067+ ['application/json-patch+json' if isinstance ( body , list ) else 'application/ merge-patch+json' ]) # noqa: E501
30683068
30693069 # Authentication setting
30703070 auth_settings = ['BearerToken' ] # noqa: E501
@@ -3242,7 +3242,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
32423242
32433243 # HTTP header `Content-Type`
32443244 header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3245- ['application/merge-patch+json' ]) # noqa: E501
3245+ ['application/json-patch+json' if isinstance ( body , list ) else 'application/ merge-patch+json' ]) # noqa: E501
32463246
32473247 # Authentication setting
32483248 auth_settings = ['BearerToken' ] # noqa: E501
@@ -3420,7 +3420,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
34203420
34213421 # HTTP header `Content-Type`
34223422 header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3423- ['application/merge-patch+json' ]) # noqa: E501
3423+ ['application/json-patch+json' if isinstance ( body , list ) else 'application/ merge-patch+json' ]) # noqa: E501
34243424
34253425 # Authentication setting
34263426 auth_settings = ['BearerToken' ] # noqa: E501
0 commit comments