Skip to content

Commit

Permalink
Add asset platform to cnspec output when displaying asset (#1535)
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 authored Jan 8, 2025
1 parent 941d182 commit 7771ef0
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 7771ef0

Please sign in to comment.