From 897109c9dd55bb36cc016e14ecc2d8853806ad6a Mon Sep 17 00:00:00 2001 From: Windfarer Date: Thu, 3 Jun 2021 15:03:16 +0800 Subject: [PATCH] fix custom_api.delete_namespaced_custom_object args --- sdk/python/kubeflow/tfjob/api/tf_job_client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/python/kubeflow/tfjob/api/tf_job_client.py b/sdk/python/kubeflow/tfjob/api/tf_job_client.py index 918ba923e3..49167caec0 100644 --- a/sdk/python/kubeflow/tfjob/api/tf_job_client.py +++ b/sdk/python/kubeflow/tfjob/api/tf_job_client.py @@ -184,12 +184,12 @@ def delete(self, name, namespace=None): try: return self.custom_api.delete_namespaced_custom_object( - constants.TFJOB_GROUP, - constants.TFJOB_VERSION, - namespace, - constants.TFJOB_PLURAL, - name, - client.V1DeleteOptions()) + group=constants.TFJOB_GROUP, + version=constants.TFJOB_VERSION, + namespace=namespace, + plural=constants.TFJOB_PLURAL, + name=name, + body=client.V1DeleteOptions()) except client.rest.ApiException as e: raise RuntimeError( "Exception when calling CustomObjectsApi->delete_namespaced_custom_object:\