Skip to content

Commit

Permalink
Bundle: rename Download to DownloadDefault for bundle download
Browse files Browse the repository at this point in the history
In upcomming commits we are creating Download function to download
user provided bundle from http/https.
  • Loading branch information
praveenkumar committed Sep 19, 2022
1 parent 9466916 commit 9510982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/crc/machine/bundle/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func getBundleDownloadInfo(preset preset.Preset) (*download.RemoteFile, error) {
return downloadInfo, nil
}

func Download(preset preset.Preset) error {
func DownloadDefault(preset preset.Preset) error {
downloadInfo, err := getBundleDownloadInfo(preset)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/crc/preflight/preflight_checks_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func fixBundleExtracted(bundlePath string, preset crcpreset.Preset) func() error
return err
}
} else {
if err := bundle.Download(preset); err != nil {
if err := bundle.DownloadDefault(preset); err != nil {
return err
}
}
Expand Down

0 comments on commit 9510982

Please sign in to comment.