From fb20198a6f55b543c3c987fce1a6480c9bd66143 Mon Sep 17 00:00:00 2001 From: alexcc Date: Tue, 15 Aug 2023 21:08:09 +0800 Subject: [PATCH] fix: rollback failed --- pkg/apis/service/extension.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/service/extension.go b/pkg/apis/service/extension.go index 05900365a..a6bf0f7d3 100644 --- a/pkg/apis/service/extension.go +++ b/pkg/apis/service/extension.go @@ -90,7 +90,7 @@ func (h Handler) RouteRollback(req RouteRollbackRequest) error { entity := rev.Edges.Service entity.Attributes = rev.Attributes - entity.TemplateID = tv.TemplateID + entity.TemplateID = tv.ID status.ServiceStatusDeployed.Reset(entity, "Rolling back") entity.Status.SetSummary(status.WalkService(&entity.Status))