Skip to content

Commit

Permalink
Fix summary display (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
imuqtadir authored Nov 19, 2020
1 parent bea4095 commit 38533f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/question/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,6 @@ func AskConfirmationWithInput(simpleConfig *config.SimpleInfo, detailedConfig *c

// If edit is allowed, give all items a number and fill the indexed options
if allowEdit {
counter := 1
for i := 0; i < len(data); i++ {
// Skip region
if data[i][0] == cli.ResourceRegion {
Expand Down Expand Up @@ -928,8 +927,7 @@ func AskConfirmationWithInput(simpleConfig *config.SimpleInfo, detailedConfig *c
} else {
indexedOptions = append(indexedOptions, data[i][0])
}
data[i][0] = fmt.Sprintf("%d.%s", counter, data[i][0])
counter++
data[i][0] = fmt.Sprintf("%s", data[i][0])
}
}
}
Expand Down

0 comments on commit 38533f6

Please sign in to comment.