Skip to content

Commit

Permalink
Use warn function when doing online install after downloading air gap (
Browse files Browse the repository at this point in the history
…#1497)

Use warn function
  • Loading branch information
ajp-io authored Nov 14, 2024
1 parent 69cac01 commit 0bc1fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ 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.Infof("You downloaded an air gap bundle but are performing an online installation.")
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) {
return ErrNothingElseToAdd
Expand Down

0 comments on commit 0bc1fd7

Please sign in to comment.