Skip to content

Commit

Permalink
Change the power control of bmh
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaPuppy committed Jun 1, 2023
1 parent d013b94 commit 8e09af0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion baremetal/metal3machine_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,9 @@ func (m *MachineManager) setHostSpec(ctx context.Context, host *bmov1alpha1.Bare
}
}

host.Spec.Online = true
if host.Status.Provisioning.State != bmov1alpha1.StateProvisioned {
host.Spec.Online = true
}

return nil
}
Expand Down

0 comments on commit 8e09af0

Please sign in to comment.