Skip to content

Commit

Permalink
Merge pull request #10 from anchore/typos
Browse files Browse the repository at this point in the history
fix: some typos
  • Loading branch information
bradleyjones committed Jan 3, 2023
2 parents 7e7e3d2 + 051e3e1 commit 4dfc168
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 4 additions & 5 deletions ecg/inventory/report.go
Original file line number Diff line number Diff line change
@@ -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"`
}

0 comments on commit 4dfc168

Please sign in to comment.