mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-05 14:31:27 +02:00
Prevent failed host-dir VMs from restarting (#463)
This commit is contained in:
@@ -322,7 +322,10 @@ func (controller *Controller) failVMsWithHostDirs() error {
|
||||
}
|
||||
|
||||
for _, vm := range vms {
|
||||
if vm.TerminalState() || len(vm.HostDirs) == 0 {
|
||||
permanentlyFailed := vm.TerminalState() &&
|
||||
vm.RestartPolicy == v1.RestartPolicyNever
|
||||
|
||||
if permanentlyFailed || len(vm.HostDirs) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user