Skip to content

Commit

Permalink
add a new linter warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Oct 31, 2023
1 parent b0af99a commit 1116311
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/cnspec/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ To manually configure a policy, use this:
os.Exit(0)
}

name := viper.GetString("name")
if name == "" {
name = "test"
}

viper.BindPFlag("platform-id", cmd.Flags().Lookup("platform-id"))

viper.BindPFlag("inventory-file", cmd.Flags().Lookup("inventory-file"))
Expand Down

0 comments on commit 1116311

Please sign in to comment.