Skip to content

Commit

Permalink
Add asset platform to cnspec output when displaying asset
Browse files Browse the repository at this point in the history
Adds the platform name to the asset name header in the asset section.

```
Asset: planetexpress
--------------------
```
becomes

```
Asset: (Arch Linux) planetexpress
---------------------------------
```

Fixes #1534
  • Loading branch information
jaym committed Jan 8, 2025
1 parent ddb7b01 commit 9388f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/reporter/print_compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (r *defaultReporter) printAssetSections(orderedAssets []assetMrnName) {
target = assetMrn
}

r.out(r.Printer.H2("Asset: " + target))
r.out(r.Printer.H2("Asset: (" + getPlatformNameForAsset(asset) + ") " + target))

errorMsg, ok := r.data.Errors[assetMrn]
if ok {
Expand Down

0 comments on commit 9388f64

Please sign in to comment.