cli: init should not call terraform (#2522)

This commit is contained in:
Adrian Stobbe 2023-10-26 14:30:11 +02:00 committed by GitHub
parent ec424b260d
commit 278edfa2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,9 +43,7 @@ func NewInitCmd() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
// Define flags for apply backend that are not set by init
cmd.Flags().Bool("yes", false, "")
// Don't skip any phases
// The apply backend should handle init calls correctly
cmd.Flags().StringSlice("skip-phases", []string{}, "")
cmd.Flags().StringSlice("skip-phases", []string{string(skipInfrastructurePhase)}, "")
cmd.Flags().Duration("timeout", time.Hour, "")
return runApply(cmd, args)
},