From 74567c2874c207709c965eda5fb8a33cac8e26df Mon Sep 17 00:00:00 2001 From: Preslav Date: Thu, 25 Jul 2024 11:12:33 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Assign=20labels=20in=20the=20cns?= =?UTF-8?q?pec=20report=20collection.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Preslav --- cli/reporter/proto.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/reporter/proto.go b/cli/reporter/proto.go index 84cc3db3..e666c448 100644 --- a/cli/reporter/proto.go +++ b/cli/reporter/proto.go @@ -51,10 +51,11 @@ func ConvertToProto(data *policy.ReportCollection) (*Report, error) { platformName = a.Platform.Name } pAsset := &cr.Asset{ - Mrn: a.Mrn, - Name: a.Name, + Mrn: a.GetMrn(), + Name: a.GetName(), PlatformName: platformName, - TraceId: a.TraceId, + TraceId: a.GetTraceId(), + Labels: a.GetLabels(), } protoReport.Assets[assetMrn] = pAsset }