Skip to content

Commit 8daa459

Browse files
committed
Don't check registration status in MatchProfile
We never call the provisioner in this state, so speed it up by never checking the current registration status.
1 parent febccb3 commit 8daa459

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controllers/metal3.io/host_state_machine.go

+4
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ func (hsm *hostStateMachine) ensureRegistered(info *reconcileInfo) (result actio
291291
// We haven't yet reached the Registration state, so don't attempt
292292
// to register the Host.
293293
return
294+
case metal3v1alpha1.StateMatchProfile:
295+
// We don't call the provisioner in this state, so there is no point
296+
// in checking the registration.
297+
return
294298
case metal3v1alpha1.StateDeleting:
295299
// In the deleting state the whole idea is to de-register the host
296300
return

0 commit comments

Comments
 (0)