Skip to content

Commit

Permalink
fix: ensure the upgrade server type is not nil (#182)
Browse files Browse the repository at this point in the history
The check was done against the wrong variable.
  • Loading branch information
jooola committed May 29, 2024
1 parent 6716852 commit d297dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/hcloud/step_pre_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (s *stepPreValidate) Run(ctx context.Context, state multistep.StateBag) mul
if err != nil {
return errorHandler(state, ui, fmt.Sprintf("Could not fetch upgrade server type '%s'", c.UpgradeServerType), err)
}
if serverType == nil {
if upgradeServerType == nil {
return errorHandler(state, ui, "", fmt.Errorf("Could not find upgrade server type '%s'", c.UpgradeServerType))
}

Expand Down

0 comments on commit d297dcb

Please sign in to comment.