Skip to content

Commit

Permalink
br: fix missing restore volume tag (#5162)
Browse files Browse the repository at this point in the history
Signed-off-by: WangLe1321 <[email protected]>
  • Loading branch information
WangLe1321 authored Jul 10, 2023
1 parent 646efc3 commit 297a5b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/backup/util/aws_ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ func (e *EC2Session) AddTags(resourcesTags map[string]TagMap) error {
tagMap := resourcesTags[resourceID]
var tags []*ec2.Tag
for tag := range tagMap {
tagKey := tag
value := tagMap[tag]
tags = append(tags, &ec2.Tag{Key: &tag, Value: &value})
tags = append(tags, &ec2.Tag{Key: &tagKey, Value: &value})
}

// Create the input for adding the tag
Expand Down

0 comments on commit 297a5b4

Please sign in to comment.