Skip to content

Commit

Permalink
fix: init region requirement for no-prompt mode (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke authored Dec 8, 2023
1 parent f7a3c10 commit 3af4169
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cmd/ini/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func noPromptMode(cmd *cobra.Command, cfg *initConfig) error {
if !creds.IsSet() {
return errors.New(msg.EmptyCredentials)
}
if cfg.region == "" {
return errors.New(msg.MissingRegion)
}

ini := newInitializer(stdio, creds, cfg)

Expand Down

0 comments on commit 3af4169

Please sign in to comment.