Skip to content

Commit

Permalink
fix isClusterPaused
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Sep 3, 2021
1 parent ea50424 commit d5f8a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/topology/machinedeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (r *MachineDeploymentReconciler) isClusterPaused(ctx context.Context, md *c
return false, errors.Errorf("couldn't find a Cluster to check if it is paused")
}

return annotations.IsPaused(cluster, md), nil
return annotations.IsPaused(cluster, cluster), nil
}

// calculateTemplatesInUse returns all templates referenced in non-deleting MachineDeployment and MachineSets.
Expand Down

0 comments on commit d5f8a8b

Please sign in to comment.