From b50e533f75db77d125a84848fa595fff402f951d Mon Sep 17 00:00:00 2001 From: BornChanger Date: Mon, 22 May 2023 16:44:57 +0800 Subject: [PATCH] *: polish code Signed-off-by: BornChanger --- br/pkg/aws/ebs.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/br/pkg/aws/ebs.go b/br/pkg/aws/ebs.go index 8bf8230975850..2b06d010cb8c9 100644 --- a/br/pkg/aws/ebs.go +++ b/br/pkg/aws/ebs.go @@ -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{ {