From b8c868e4418652c98dea21446b61e6887f3b8f3d Mon Sep 17 00:00:00 2001 From: Rafael Mendez Date: Tue, 9 Jul 2024 17:18:52 +0000 Subject: [PATCH] Fixed issues that came up with make verify --- pkg/cloud/cloud.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cloud/cloud.go b/pkg/cloud/cloud.go index f2b88bd926..df32bea708 100644 --- a/pkg/cloud/cloud.go +++ b/pkg/cloud/cloud.go @@ -764,7 +764,8 @@ func (c *cloud) ModifyTags(ctx context.Context, volumeID string, tagsToAdd map[s } _, deleteErr := c.ec2.DeleteTags(ctx, deleteTagsInput) if deleteErr != nil { - klog.ErrorS(deleteErr, "failed to delete tags on volume: ", volumeID) + klog.ErrorS(deleteErr, "failed to delete tags on volume: "+volumeID) + return deleteErr } } @@ -781,7 +782,7 @@ func (c *cloud) ModifyTags(ctx context.Context, volumeID string, tagsToAdd map[s } _, addErr := c.ec2.CreateTags(ctx, createTagsInput) if addErr != nil { - klog.ErrorS(addErr, "failed to create tags on volume: ", volumeID) + klog.ErrorS(addErr, "failed to create tags on volume: "+volumeID) return addErr } }