Skip to content

Commit

Permalink
br: fix missing restore volume tag (#5163)
Browse files Browse the repository at this point in the history
Signed-off-by: WangLe1321 <[email protected]>
Co-authored-by: WangLe1321 <[email protected]>
  • Loading branch information
ti-chi-bot and WangLe1321 committed Jul 10, 2023
1 parent 3427a30 commit c6ecbc5
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 c6ecbc5

Please sign in to comment.