Skip to content

Commit

Permalink
fix custom_api.delete_namespaced_custom_object args
Browse files Browse the repository at this point in the history
  • Loading branch information
Windfarer committed Jun 3, 2021
1 parent c095f7a commit 897109c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk/python/kubeflow/tfjob/api/tf_job_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:\
Expand Down

0 comments on commit 897109c

Please sign in to comment.