Skip to content

Commit

Permalink
cli: fix stop command exception
Browse files Browse the repository at this point in the history
* fix wrong number of positional arguments exception

* Closes reanahub/reana-client#291

* Same problem as in reanahub/reana-job-controller/pull/128

Signed-off-by: Jan Okraska <jan.okraska@cern.ch>
  • Loading branch information
okraskaj committed Jun 21, 2019
1 parent 5e45767 commit 7354c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana_workflow_controller/workflow_run_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def stop_batch_workflow_run(self, workflow_run_jobs=None):
current_k8s_batchv1_api_client.delete_namespaced_job(
job,
KubernetesWorkflowRunManager.default_namespace,
V1DeleteOptions(propagation_policy='Background'))
body=V1DeleteOptions(propagation_policy='Background'))

def _create_job_spec(self, name, command=None, image=None,
env_vars=None):
Expand Down

0 comments on commit 7354c8b

Please sign in to comment.