Skip to content

Commit

Permalink
Fix panic when using logserver-bundle flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed May 7, 2024
1 parent e14d6a2 commit fef46c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/appliance/upgrade/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ func prepareRun(cmd *cobra.Command, opts *prepareUpgradeOptions) error {
bundleProgress.WriteLine("Bundle prepared successfully", "")
bundleProgress.Wait()
}
} else {
zip, err = os.Open(opts.logServerBundlePath)
if err != nil {
return err
}
}

if err := fm.AddToQueue(zip, logServerZipName); err != nil {
Expand Down

0 comments on commit fef46c1

Please sign in to comment.