mirror of https://github.com/cirruslabs/tart.git
Resume suspended VMs without explicit `--suspendable` flag (#540)
This commit is contained in:
parent
2014de7dac
commit
d2ed4ef801
|
|
@ -108,6 +108,12 @@ struct Run: AsyncParsableCommand {
|
|||
if graphics && noGraphics {
|
||||
throw ValidationError("--graphics and --no-graphics are mutually exclusive")
|
||||
}
|
||||
|
||||
let localStorage = VMStorageLocal()
|
||||
let vmDir = try localStorage.open(name)
|
||||
if try vmDir.state() == "suspended" {
|
||||
suspendable = true
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
|
|
|
|||
Loading…
Reference in New Issue