Skip to content

Commit

Permalink
skip terrascan init for --config-with-error flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nasir-rabbani committed Feb 22, 2022
1 parent a524076 commit edf1d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var scanCmd = &cobra.Command{
Detect compliance and security violations across Infrastructure as Code to mitigate risk before provisioning cloud native infrastructure.
`,
PreRunE: func(cmd *cobra.Command, args []string) error {
if scanOptions.configOnly {
if scanOptions.configOnly || scanOptions.configWithError {
return nil
}
return initial(cmd, args, true)
Expand Down

0 comments on commit edf1d22

Please sign in to comment.