Skip to content

Commit 17987e2

Browse files
authored
fix(vd): restore annotations correctly (#1758)
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
1 parent 36be2b6 commit 17987e2

File tree

1 file changed

+1
-1
lines changed
  • images/virtualization-artifact/pkg/common/vdsnapshot

1 file changed

+1
-1
lines changed

images/virtualization-artifact/pkg/common/vdsnapshot/vdsnapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func AddOriginalMetadata(vd *v1alpha2.VirtualDisk, vs *vsv1.VolumeSnapshot) erro
6161
if vd.Annotations == nil {
6262
vd.Annotations = make(map[string]string)
6363
}
64-
for key, value := range labelsMap {
64+
for key, value := range annotationsMap {
6565
if _, exists := vd.Annotations[key]; !exists {
6666
vd.Annotations[key] = value
6767
}

0 commit comments

Comments
 (0)