Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Feb 16, 2024
1 parent becf764 commit e304f6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/midstream/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ func WriteMidstream(opts WriteOptions) (*Midstream, error) {
opts.Log.ActionWithSpinner("Copying images")
io.WriteString(opts.ProcessImageOptions.ReportWriter, "Copying images\n")

if opts.ProcessImageOptions.AirgapRoot == "" {
err := image.CopyOnlineImages(opts.ProcessImageOptions, allImages, opts.KotsKinds, opts.License, dockerHubRegistryCreds, opts.Log)
if opts.ProcessImageOptions.IsAirgap {
err := image.CopyAirgapImages(opts.ProcessImageOptions, opts.Log)
if err != nil {
return nil, errors.Wrap(err, "failed to copy online images")
return nil, errors.Wrap(err, "failed to copy airgap images")
}
} else {
err := image.CopyAirgapImages(opts.ProcessImageOptions, opts.Log)
err := image.CopyOnlineImages(opts.ProcessImageOptions, allImages, opts.KotsKinds, opts.License, dockerHubRegistryCreds, opts.Log)
if err != nil {
return nil, errors.Wrap(err, "failed to copy airgap images")
return nil, errors.Wrap(err, "failed to copy online images")
}
}
}
Expand Down

0 comments on commit e304f6a

Please sign in to comment.