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 } }