Skip to content

Commit

Permalink
Updated prompt.Confirm callers outside state tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Nov 18, 2024
1 parent 1fdc129 commit 918a41c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/state-installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (i *Installer) Install() (rerr error) {
}
if isAdmin && !i.Params.force && !i.Params.isUpdate && !i.Params.nonInteractive {
prompter := prompt.New(true, i.an)
confirm, err := prompter.Confirm("", locale.T("installer_prompt_is_admin"), ptr.To(false))
confirm, err := prompter.Confirm("", locale.T("installer_prompt_is_admin"), ptr.To(false), nil)
if err != nil {
return errs.Wrap(err, "Unable to confirm")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/state-remote-installer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func main() {
func execute(out output.Outputer, prompt prompt.Prompter, cfg *config.Instance, an analytics.Dispatcher, args []string, params *Params) error {
msg := locale.Tr("tos_disclaimer", constants.TermsOfServiceURLLatest)
msg += locale.Tr("tos_disclaimer_prompt", constants.TermsOfServiceURLLatest)
cont, err := prompt.Confirm(locale.Tr("install_remote_title"), msg, ptr.To(true))
cont, err := prompt.Confirm(locale.Tr("install_remote_title"), msg, ptr.To(true), nil)
if err != nil {
return errs.Wrap(err, "Could not prompt for confirmation")
}
Expand Down

0 comments on commit 918a41c

Please sign in to comment.