Skip to content

Commit

Permalink
*: polish code
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <dawn_catcher@126.com>
  • Loading branch information
BornChanger committed May 22, 2023
1 parent 496ccd0 commit b50e533
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions br/pkg/aws/ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,11 @@ func (e *EC2Session) CreateVolumes(meta *config.EBSBasedBRMeta, volumeType strin

snapshotTags := resp.Snapshots[0].Tags
tags = append(tags, ec2Tag("snapshot/createdFromSnapshotId", oldVol.SnapshotID),
ec2Tag("snapshot/"+SourcePvcNameKey, fetchTagValue(snapshotTags, "source/pvcName")),
ec2Tag("snapshot/"+SourceVolumeIdKey, fetchTagValue(snapshotTags, "source/VolumeId")),
ec2Tag("snapshot/"+SourceTikvNameKey, fetchTagValue(snapshotTags, "source/TikvName")),
ec2Tag("snapshot/"+SourceNamespaceKey, fetchTagValue(snapshotTags, "source/Namespace")),
ec2Tag("snapshot/"+SourceContextKey, fetchTagValue(snapshotTags, "source/context")))
ec2Tag("snapshot/"+SourcePvcNameKey, fetchTagValue(snapshotTags, SourcePvcNameKey)),
ec2Tag("snapshot/"+SourceVolumeIdKey, fetchTagValue(snapshotTags, SourceVolumeIdKey)),
ec2Tag("snapshot/"+SourceTikvNameKey, fetchTagValue(snapshotTags, SourceTikvNameKey)),
ec2Tag("snapshot/"+SourceNamespaceKey, fetchTagValue(snapshotTags, SourceNamespaceKey)),
ec2Tag("snapshot/"+SourceContextKey, fetchTagValue(snapshotTags, SourceContextKey)))

req.SetTagSpecifications([]*ec2.TagSpecification{
{
Expand Down

0 comments on commit b50e533

Please sign in to comment.