Skip to content

Commit

Permalink
Fix decommission
Browse files Browse the repository at this point in the history
commit_hash:71a50359f44f6e37d0a9ab909a36b0aaa677d635
  • Loading branch information
xRaiMaNx committed Sep 16, 2024
1 parent 4669c6d commit 021b18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cms/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func unmarkNodeDecommissioned(ctx context.Context, dc DiscoveryClient, useMainte
node := ctx.Value(nodeKey).(*ytsys.Node)

if useMaintenanceAPI {
return removeMaintenances(ctx, dc, node.Addr, yt.MaintenanceComponentClusterNode, yt.MaintenanceTypeDisableWriteSessions)
return removeMaintenances(ctx, dc, node.Addr, yt.MaintenanceComponentClusterNode, yt.MaintenanceTypeDecommission)
}
return dc.UnmarkNodeDecommissioned(ctx, node.Addr)
}
Expand Down

0 comments on commit 021b18f

Please sign in to comment.