From e9e5cc6bf873e184d2fccf17e6aec3505b9db31f Mon Sep 17 00:00:00 2001 From: Alex Parker <7272359+ajp-io@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:17:15 -0500 Subject: [PATCH] Clarify air gap bundle warning (#1524) --- pkg/cmd/install.go | 6 +++--- pkg/cmd/restore.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go index 0a185a32d..c980e183c 100644 --- a/pkg/cmd/install.go +++ b/pkg/cmd/install.go @@ -774,9 +774,9 @@ func installCommand() *cli.Command { if channelRelease, err := release.GetChannelRelease(); err != nil { return fmt.Errorf("unable to read channel release data: %w", err) } else if channelRelease != nil && channelRelease.Airgap && c.String("airgap-bundle") == "" && !c.Bool("no-prompt") { - logrus.Warnf("You downloaded an air gap bundle but are performing an online installation.") - logrus.Infof("To do an air gap installation, pass the air gap bundle with --airgap-bundle.") - if !prompts.New().Confirm("Do you want to proceed with an online installation?", false) { + logrus.Warnf("You downloaded an air gap bundle but didn't provide it with --airgap-bundle.") + logrus.Warnf("If you continue, the installation will not use an air gap bundle and will connect to the internet.") + if !prompts.New().Confirm("Are you sure you want to install without an air gap bundle?", false) { return ErrNothingElseToAdd } } diff --git a/pkg/cmd/restore.go b/pkg/cmd/restore.go index 68baed2b8..4fafe1698 100644 --- a/pkg/cmd/restore.go +++ b/pkg/cmd/restore.go @@ -945,9 +945,9 @@ func restoreCommand() *cli.Command { if channelRelease, err := release.GetChannelRelease(); err != nil { return fmt.Errorf("unable to read channel release data: %w", err) } else if channelRelease != nil && channelRelease.Airgap && c.String("airgap-bundle") == "" && !c.Bool("no-prompt") { - logrus.Infof("You downloaded an air gap bundle but are performing an online restore.") - logrus.Infof("To do an air gap restore, pass the air gap bundle with --airgap-bundle.") - if !prompts.New().Confirm("Do you want to proceed with an online restore?", false) { + logrus.Warnf("You downloaded an air gap bundle but didn't provide it with --airgap-bundle.") + logrus.Warnf("If you continue, the restore will not use an air gap bundle and will connect to the internet.") + if !prompts.New().Confirm("Are you sure you want to restore without an air gap bundle?", false) { return ErrNothingElseToAdd } }