From fc8a689a3ce156b5d1216d8c0684eb6f7763b223 Mon Sep 17 00:00:00 2001 From: alingse Date: Sun, 26 May 2024 23:58:52 +0800 Subject: [PATCH] fix: fix miss makezero bug Signed-off-by: alingse --- providers/tencent/cvm/instances.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/tencent/cvm/instances.go b/providers/tencent/cvm/instances.go index 6284683aa..5eafba18b 100644 --- a/providers/tencent/cvm/instances.go +++ b/providers/tencent/cvm/instances.go @@ -43,7 +43,7 @@ func Instances(ctx context.Context, client providers.ProviderClient) ([]models.R } for _, instance := range instances.Response.InstanceSet { - tags := make([]models.Tag, len(instance.Tags)) + tags := make([]models.Tag, 0, len(instance.Tags)) for _, tag := range instance.Tags { tags = append(tags, models.Tag{ Key: *tag.Key,