Skip to content

Commit db151cb

Browse files
authored
feat(vmsnapshot): add hotplugged image manifests to snapshot (#1198)
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
1 parent 7f60942 commit db151cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • images/virtualization-artifact/pkg/controller/service/restorer

images/virtualization-artifact/pkg/controller/service/restorer/restorer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (r SecretRestorer) setVirtualMachineBlockDeviceAttachments(ctx context.Cont
119119
var vmbdas []*virtv2.VirtualMachineBlockDeviceAttachment
120120

121121
for _, bdr := range vm.Status.BlockDeviceRefs {
122-
if bdr.Kind != virtv2.DiskDevice || !bdr.Hotplugged {
122+
if !bdr.Hotplugged {
123123
continue
124124
}
125125

0 commit comments

Comments
 (0)