Skip to content

Commit 9ec4db2

Browse files
committed
fix missing values
1 parent 794cb38 commit 9ec4db2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

internal/controller/linodecluster_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ func (r *LinodeClusterReconciler) Reconcile(ctx context.Context, req ctrl.Reques
113113
return ctrl.Result{}, fmt.Errorf("failed to create cluster scope: %w", err)
114114
}
115115

116-
isPaused, conditionChanged, err := paused.EnsurePausedCondition(ctx, clusterScope.Client, clusterScope.Cluster, clusterScope.LinodeCluster)
117-
if err != nil {
116+
if isPaused, conditionChanged, err := paused.EnsurePausedCondition(ctx, clusterScope.Client, clusterScope.Cluster, clusterScope.LinodeCluster); err != nil {
118117
return ctrl.Result{}, err
119118
}
120119

internal/controller/linodemachine_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ func (r *LinodeMachineReconciler) Reconcile(ctx context.Context, req ctrl.Reques
166166
return ctrl.Result{}, fmt.Errorf("failed to create machine scope: %w", err)
167167
}
168168

169-
isPaused, conditionChanged, err := paused.EnsurePausedCondition(ctx, machineScope.Client, machineScope.Cluster, machineScope.LinodeMachine)
170-
if err != nil {
169+
if _, _, err := paused.EnsurePausedCondition(ctx, clusterScope.Client, clusterScope.Cluster, clusterScope.LinodeCluster); err != nil {
171170
return ctrl.Result{}, err
172171
}
173172

0 commit comments

Comments
 (0)