From 051e3e1216e7947e2d3b1e2c2d9fcfd41d3e5a3d Mon Sep 17 00:00:00 2001 From: Bradley Jones Date: Tue, 3 Jan 2023 18:04:52 +0000 Subject: [PATCH] fix: some typos Signed-off-by: Bradley Jones --- cmd/root.go | 2 +- ecg/inventory/report.go | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index ba077fe..4daacf2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -102,7 +102,7 @@ func init() { } opt = "region" - rootCmd.Flags().StringP(opt, "r", "", "If set overrides the AWS_REGION environment variable/region specified in ECF config") + rootCmd.Flags().StringP(opt, "r", "", "If set overrides the AWS_REGION environment variable/region specified in ECG config") if err := viper.BindPFlag(opt, rootCmd.Flags().Lookup(opt)); err != nil { fmt.Printf("unable to bind flag '%s': %+v", opt, err) os.Exit(1) diff --git a/ecg/inventory/report.go b/ecg/inventory/report.go index e5a8212..c048b30 100644 --- a/ecg/inventory/report.go +++ b/ecg/inventory/report.go @@ -1,9 +1,8 @@ package inventory type Report struct { - Timestamp string `json:"timestamp,omitempty"` // Should be generated using time.Now.UTC() and formatted according to RFC Y-M-DTH:M:SZ - Results []ReportItem `json:"results"` - ClusterName string `json:"clusterName,omitempty"` // NOTE: The key here is ClusterName to match the Anchore API but it's actually the region - - InventoryType string `json:"inventory_type"` + Timestamp string `json:"timestamp,omitempty"` // Should be generated using time.Now.UTC() and formatted according to RFC Y-M-DTH:M:SZ + Results []ReportItem `json:"results"` + ClusterName string `json:"clusterName,omitempty"` // NOTE: The key here is ClusterName to match the Anchore API but it's actually the region + InventoryType string `json:"inventory_type"` }