Skip to content

Commit

Permalink
Merge pull request #1428 from alingse-forks/fix-makezero-bug
Browse files Browse the repository at this point in the history
fix: fix miss makezero bug
  • Loading branch information
Azanul authored May 26, 2024
2 parents 438711e + fc8a689 commit fa02724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/tencent/cvm/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fa02724

Please sign in to comment.