Skip to content

Commit 3af4169

Browse files
author
Alex Plischke
authored
fix: init region requirement for no-prompt mode (#868)
1 parent f7a3c10 commit 3af4169

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/cmd/ini/cmd.go

+3
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ func noPromptMode(cmd *cobra.Command, cfg *initConfig) error {
169169
if !creds.IsSet() {
170170
return errors.New(msg.EmptyCredentials)
171171
}
172+
if cfg.region == "" {
173+
return errors.New(msg.MissingRegion)
174+
}
172175

173176
ini := newInitializer(stdio, creds, cfg)
174177

0 commit comments

Comments
 (0)