Skip to content

Commit

Permalink
Avoid locally scoped variable issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhjanders committed Oct 14, 2024
1 parent 8e93c18 commit a327bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/metal3.io/baremetalhost_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,9 @@ func (r *BareMetalHostReconciler) checkServicing(prov provisioner.Provisioner, i
}

if servicingData.LiveFirmwareSettingsAllowed {
hfsDirty, hfs, err := r.getHostFirmwareSettings(info)
var hfs *metal3api.HostFirmwareSettings
var err error
hfsDirty, hfs, err = r.getHostFirmwareSettings(info)
if err != nil {
info.log.Info(fmt.Sprintf("janders-debug: r.getHostFirmwareSettings failed: %q", err))
return actionError{fmt.Errorf("could not determine updated settings: %w", err)}, false
Expand Down

0 comments on commit a327bf3

Please sign in to comment.