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 May 31, 2023
1 parent d013b94 commit b739b89
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.StateExternallyProvisioned {
host.Spec.Online = true
}

return nil
}
Expand Down

0 comments on commit b739b89

Please sign in to comment.