From 9388f64096d46666a428af1477e3d532904381f2 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Wed, 8 Jan 2025 09:44:03 -0600 Subject: [PATCH] Add asset platform to cnspec output when displaying asset Adds the platform name to the asset name header in the asset section. ``` Asset: planetexpress -------------------- ``` becomes ``` Asset: (Arch Linux) planetexpress --------------------------------- ``` Fixes #1534 --- cli/reporter/print_compact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/reporter/print_compact.go b/cli/reporter/print_compact.go index f766ca11..9b123f96 100644 --- a/cli/reporter/print_compact.go +++ b/cli/reporter/print_compact.go @@ -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 {