Skip to content

Commit

Permalink
fix repeair_finish
Browse files Browse the repository at this point in the history
  • Loading branch information
YZ775 committed Nov 11, 2024
1 parent e278761 commit 52d692d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op/repair_finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (c repairFinishCommand) Command() cke.Command {

func repairFinish(ctx context.Context, inf cke.Infrastructure, entry *cke.RepairQueueEntry, succeeded bool, cluster *cke.Cluster) error {
if succeeded {
entry.Status = cke.RepairStatusSucceeded
//execute Success command
err := func() error {
op, err := entry.GetMatchingRepairOperation(cluster)
Expand Down Expand Up @@ -104,7 +105,6 @@ func repairFinish(ctx context.Context, inf cke.Infrastructure, entry *cke.Repair
"address": entry.Address,
})
}
entry.Status = cke.RepairStatusSucceeded
} else {
entry.Status = cke.RepairStatusFailed
}
Expand Down

0 comments on commit 52d692d

Please sign in to comment.