From 79b3e30746f779e3cec3a28beaecb9c0df7024e1 Mon Sep 17 00:00:00 2001 From: Joshua Carp Date: Sat, 3 Nov 2018 02:09:17 -0400 Subject: [PATCH] Fix string format arguments in workflow utilities. (#1070) --- workflow/util/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/util/util.go b/workflow/util/util.go index 9a6fc09ee452..40d0bb4ffe24 100644 --- a/workflow/util/util.go +++ b/workflow/util/util.go @@ -412,7 +412,7 @@ func FormulateResubmitWorkflow(wf *wfv1.Workflow, memoized bool) (*wfv1.Workflow // NOTE: NodeRunning shouldn't really happen except in weird scenarios where controller // mismanages state (e.g. panic when operating on a workflow) default: - return nil, errors.InternalErrorf("Workflow cannot be resubmitted with nodes in %s phase", node, node.Phase) + return nil, errors.InternalErrorf("Workflow cannot be resubmitted with node %s in %s phase", node, node.Phase) } } return &newWF, nil @@ -460,7 +460,7 @@ func RetryWorkflow(kubeClient kubernetes.Interface, wfClient v1alpha1.WorkflowIn // do not add this status to the node. pretend as if this node never existed. default: // Do not allow retry of workflows with pods in Running/Pending phase - return nil, errors.InternalErrorf("Workflow cannot be retried with nodes in %s phase", node, node.Phase) + return nil, errors.InternalErrorf("Workflow cannot be retried with node %s in %s phase", node, node.Phase) } if node.Type == wfv1.NodeTypePod { log.Infof("Deleting pod: %s", node.ID)