Skip to content

Commit b992651

Browse files
committed
fix clone vmbda
Signed-off-by: Dmitry Lopatin <[email protected]>
1 parent 6cacbc9 commit b992651

File tree

1 file changed

+2
-2
lines changed
  • images/virtualization-artifact/pkg/controller/service/restorer/restorers

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ func (v *VMBlockDeviceAttachmentHandler) Customize(prefix, suffix string) {
8585
case v1alpha2.VMBDAObjectRefKindVirtualDisk:
8686
v.vmbda.Spec.BlockDeviceRef.Name = common.ApplyNameCustomization(v.vmbda.Spec.BlockDeviceRef.Name, prefix, suffix)
8787
case v1alpha2.VMBDAObjectRefKindClusterVirtualImage:
88-
v.vmbda.Spec.BlockDeviceRef.Name = common.ApplyNameCustomization(v.vmbda.Spec.BlockDeviceRef.Name, prefix, suffix)
88+
// Do not apply prefix/suffix customization to ClusterVirtualImage names
8989
case v1alpha2.VMBDAObjectRefKindVirtualImage:
90-
v.vmbda.Spec.BlockDeviceRef.Name = common.ApplyNameCustomization(v.vmbda.Spec.BlockDeviceRef.Name, prefix, suffix)
90+
// Do not apply prefix/suffix customization to VirtualImage names
9191
}
9292
}
9393

0 commit comments

Comments
 (0)