From 918a41c94670469f5827c03353dae4a9b449dd49 Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 15 Nov 2024 16:18:11 -0500 Subject: [PATCH] Updated prompt.Confirm callers outside state tool. --- cmd/state-installer/installer.go | 2 +- cmd/state-remote-installer/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/state-installer/installer.go b/cmd/state-installer/installer.go index 65ce101cb5..b5fef2a594 100644 --- a/cmd/state-installer/installer.go +++ b/cmd/state-installer/installer.go @@ -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") } diff --git a/cmd/state-remote-installer/main.go b/cmd/state-remote-installer/main.go index c5c08b4fb5..2ca3c36f75 100644 --- a/cmd/state-remote-installer/main.go +++ b/cmd/state-remote-installer/main.go @@ -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") }