Skip to content

Commit

Permalink
Merge pull request #39 from brycahta/fixn
Browse files Browse the repository at this point in the history
fix launch without region flag
  • Loading branch information
brycahta authored Feb 8, 2021
2 parents 9811ca6 + 576789e commit 1500f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,9 @@ func launchNonInteractive(h *ec2helper.EC2Helper) {
simpleConfig := config.NewSimpleInfo()
if flagConfig.Region != "" {
simpleConfig.Region = flagConfig.Region
h.ChangeRegion(simpleConfig.Region)
}

h.ChangeRegion(simpleConfig.Region)

// Try to get config from the config file
err := config.ReadConfig(simpleConfig, nil)
if cli.ShowError(err, "Loading config failed") {
Expand Down
2 changes: 1 addition & 1 deletion pkg/question/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ func AskConfirmationWithInput(simpleConfig *config.SimpleInfo, detailedConfig *c
configText := table.BuildTable(data, nil)

optionsText := configText + yesNoOption + "\n"
question := "Please confirm if you would like to launch instance with following options: "
question := "Please confirm if you would like to launch instance with following options"

answer := AskQuestion(&AskQuestionInput{
QuestionString: question,
Expand Down

0 comments on commit 1500f40

Please sign in to comment.