Skip to content

Commit

Permalink
🐛 Assign labels in the cnspec report collection. (#1384)
Browse files Browse the repository at this point in the history
Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev authored Jul 25, 2024
1 parent 7903322 commit 59fcc6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cli/reporter/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 59fcc6d

Please sign in to comment.