Skip to content

Commit

Permalink
Use correct asset mrn for sending asset data (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaym authored Jul 29, 2024
1 parent dd081f8 commit 78c1d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/scan/local_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ func (s *localAssetScanner) getReport() (*policy.Report, error) {
if cnquery.GetFeatures(s.job.Ctx).IsActive(cnquery.StoreResourcesData) {
log.Info().Str("mrn", s.job.Asset.Mrn).Msg("store resources for asset")
recording := s.Runtime.Recording()
data, ok := recording.GetAssetData("") // s.job.Asset.Mrn)
data, ok := recording.GetAssetData(s.job.Asset.Mrn)
if !ok {
log.Debug().Msg("not storing resource data for this asset, nothing available")
} else {
Expand Down

0 comments on commit 78c1d14

Please sign in to comment.