Skip to content

Commit 4cefa67

Browse files
More comments
1 parent e64333a commit 4cefa67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/infrastructure/docker/internal/controllers/backends/docker/dockermachine_backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (r *MachineBackendReconciler) ReconcileNormal(ctx context.Context, cluster
206206

207207
// Update the ContainerProvisioned and BootstrapExecSucceeded condition if not already in the correct state.
208208
requeue := false
209-
if conditions.GetReason(dockerMachine, infrav1.ContainerProvisionedCondition) != "" {
209+
if !conditions.IsTrue(dockerMachine, infrav1.ContainerProvisionedCondition) {
210210
conditions.MarkTrue(dockerMachine, infrav1.ContainerProvisionedCondition)
211211
v1beta2conditions.Set(dockerMachine, metav1.Condition{
212212
Type: infrav1.DevMachineDockerContainerProvisionedV1Beta2Condition,

0 commit comments

Comments
 (0)