From 74e167ad19e3bfc478b9f00f3172b004c6d3a7b4 Mon Sep 17 00:00:00 2001 From: Yvonnick Esnault Date: Mon, 6 Jul 2020 19:13:28 +0200 Subject: [PATCH] fix(hatchery): avoid panic on queuePolling (#5302) Signed-off-by: Yvonnick Esnault --- sdk/cdsclient/client_queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cdsclient/client_queue.go b/sdk/cdsclient/client_queue.go index ca2b0a0c28..9eb72271a6 100644 --- a/sdk/cdsclient/client_queue.go +++ b/sdk/cdsclient/client_queue.go @@ -97,7 +97,7 @@ func (c *client) QueuePolling(ctx context.Context, jobs chan<- sdk.WorkflowNodeJ } if err != nil { - errs <- fmt.Errorf("unable to get job %v info: %v", job.ID, err) + errs <- fmt.Errorf("unable to get job %v info: %v", jobEvent.ID, err) continue } // push the job in the channel