From 2a7a4925887861904df09d6957337b2f60c01d32 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Sat, 26 Dec 2020 12:53:18 +0100 Subject: [PATCH] Fix Start validation Signed-off-by: Rohit Nayak --- go/vt/wrangler/workflow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/vt/wrangler/workflow.go b/go/vt/wrangler/workflow.go index 6d8c53950e8..53bb53266fd 100644 --- a/go/vt/wrangler/workflow.go +++ b/go/vt/wrangler/workflow.go @@ -158,8 +158,8 @@ func (vrw *VReplicationWorkflow) stateAsString(ws *workflowState) string { // Start initiates a workflow func (vrw *VReplicationWorkflow) Start() error { var err error - if !vrw.Exists() { - return fmt.Errorf("workflow now found") + if vrw.Exists() { + return fmt.Errorf("workflow already exists found") } if vrw.CachedState() != WorkflowStateNotStarted { return fmt.Errorf("workflow has already been started, state is %s", vrw.CachedState())