Skip to content

Commit

Permalink
Remove unused ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Jan 2, 2025
1 parent ecc2995 commit de6a42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/incusmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (r *IncusMachineReconciler) reconcileNormal(ctx context.Context, cluster *c

output, err := r.IncusClient.GetInstance(ctx, incusMachine.Name)
if err == nil {
if r.isMachineReady(ctx, output) {
if r.isMachineReady(output) {
log.Info("IncusMachine instance is ready")

incusMachine.Spec.ProviderID = &output.ProviderID
Expand Down Expand Up @@ -345,7 +345,7 @@ func (r *IncusMachineReconciler) getBootstrapData(ctx context.Context, namespace
return string(value), bootstrapv1.Format(format), nil
}

func (r *IncusMachineReconciler) isMachineReady(ctx context.Context, output *incus.GetInstanceOutput) bool {
func (r *IncusMachineReconciler) isMachineReady(output *incus.GetInstanceOutput) bool {
return output.StatusCode == api.Running
}

Expand Down

0 comments on commit de6a42c

Please sign in to comment.