From 021b18f1f8cf9e8e879be2051017d89bbabb69a4 Mon Sep 17 00:00:00 2001 From: mssilenin Date: Mon, 16 Sep 2024 15:16:04 +0300 Subject: [PATCH] Fix decommission commit_hash:71a50359f44f6e37d0a9ab909a36b0aaa677d635 --- internal/cms/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cms/helpers.go b/internal/cms/helpers.go index 162c042..b70d0c1 100644 --- a/internal/cms/helpers.go +++ b/internal/cms/helpers.go @@ -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) }