diff --git a/builder/hcloud/step_pre_validate.go b/builder/hcloud/step_pre_validate.go index 3a03edb5..9283d5b8 100644 --- a/builder/hcloud/step_pre_validate.go +++ b/builder/hcloud/step_pre_validate.go @@ -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)) }