Skip to content

Commit 7bad37b

Browse files
committed
feat(vmop): Clone running VM
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
1 parent fee241e commit 7bad37b

File tree

1 file changed

+1
-1
lines changed
  • images/virtualization-artifact/pkg/controller/vmop/snapshot/internal/service

1 file changed

+1
-1
lines changed

images/virtualization-artifact/pkg/controller/vmop/snapshot/internal/service/clone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (o CloneOperation) Execute(ctx context.Context) (reconcile.Result, error) {
9191
}
9292

9393
func (o CloneOperation) IsApplicableForVMPhase(phase v1alpha2.MachinePhase) bool {
94-
return phase == v1alpha2.MachineStopped
94+
return phase == v1alpha2.MachineStopped || phase == v1alpha2.MachineRunning
9595
}
9696

9797
func (o CloneOperation) IsApplicableForRunPolicy(runPolicy v1alpha2.RunPolicy) bool {

0 commit comments

Comments
 (0)