Skip to content

Commit

Permalink
don't rely on pointers for upgrade status
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed Jun 26, 2024
1 parent d838b6b commit 5137767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/appliance/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func NewUpgradePlan(appliances []openapi.Appliance, stats openapi.StatsAppliance

// Get upgrade status and target version
upgradeStatus := stats.GetUpgrade()
if status, ok := upgradeStatus.GetStatusOk(); ok && *status != UpgradeStatusReady {
if status := upgradeStatus.GetStatus(); status != UpgradeStatusReady {
plan.Skipping = append(plan.Skipping, SkipUpgrade{
Appliance: a,
Reason: ErrSkipReasonNotPrepared,
Expand Down

0 comments on commit 5137767

Please sign in to comment.