mirror of https://github.com/cirruslabs/tart.git
Validate that a suspendable VM doesn't have shared directories (#623)
This commit is contained in:
parent
71d03226fe
commit
8e9d61d5f5
|
|
@ -126,6 +126,12 @@ struct Run: AsyncParsableCommand {
|
|||
if try vmDir.state() == "suspended" {
|
||||
suspendable = true
|
||||
}
|
||||
|
||||
if suspendable {
|
||||
if dir.count > 0 {
|
||||
throw ValidationError("Suspending VMs with shared directories is not supported")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
|
|
|
|||
Loading…
Reference in New Issue