From 286034c6f98dc9dfc007bf8920c9180993439eb2 Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Tue, 4 Jul 2023 09:49:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8=20InstallCollection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/setup/collection.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/setup/collection.go b/pkg/setup/collection.go index 679ef262..989f70b1 100644 --- a/pkg/setup/collection.go +++ b/pkg/setup/collection.go @@ -146,10 +146,12 @@ func (s *Setup) InstallCollection(ctx context.Context, c CollectionConfig) (setS } } else { var upd bool - - err = s.checkSchemaMetadata(collection, exist) - if err != nil { - return false, err + if c.metadata != nil { + collection.Schema.Metadata = c.metadata + err = s.checkSchemaMetadata(collection, exist) + if err != nil { + return false, err + } } collection, upd, setSchema = c.UpdateFn(s, exist, c.collection) -- GitLab