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:\