From 9264105934b3791ad8325f12d33ef5fc98f46b75 Mon Sep 17 00:00:00 2001 From: stonezdj Date: Wed, 14 Oct 2020 13:33:54 +0800 Subject: [PATCH] Add pull time for proxy cache artifact in first pull Fixes #13152 Signed-off-by: stonezdj --- src/controller/proxy/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/proxy/controller.go b/src/controller/proxy/controller.go index 7545bd7ab..133853fe3 100644 --- a/src/controller/proxy/controller.go +++ b/src/controller/proxy/controller.go @@ -142,7 +142,8 @@ func (c *controller) ProxyManifest(ctx context.Context, p *models.Project, art l if err != nil { log.Errorf("failed to get manifest, error %v", err) } - } else { + } + if a != nil { SendPullEvent(a, art.Tag, operator) } }(operator.FromContext(ctx))