summaryrefslogtreecommitdiff
path: root/pkg/machine/wsl
diff options
context:
space:
mode:
authorShane Smith <shane.smith@shopify.com>2022-06-07 12:57:54 -0400
committerMatthew Heon <mheon@redhat.com>2022-06-14 16:12:10 -0400
commitbc8f7b3b430d4c0d89ac02b65ad69a474b01d791 (patch)
tree505a1ccd8afd21688bf59f2730142f4fb378aa24 /pkg/machine/wsl
parentd5fb5679c62d9c602a2878b1eb880c8e78969649 (diff)
downloadpodman-bc8f7b3b430d4c0d89ac02b65ad69a474b01d791.tar.gz
podman-bc8f7b3b430d4c0d89ac02b65ad69a474b01d791.tar.bz2
podman-bc8f7b3b430d4c0d89ac02b65ad69a474b01d791.zip
Introduce 'Starting' status for machines
- The State() function now returns machine.Starting status instead of an empty string if the VM is in the process of starting. - The `CheckExclusiveActiveVM()` function returns `true` to prevent starting a VM while another is in the process of starting. - `podman machine ls` displays "Currently starting" under "Last Up" for the starting VM - `podman machine ls` supports `{{.Starting}}` boolean field in the format - `podman machine inspect` displays "starting" in the "State" field for the starting VM Signed-off-by: Shane Smith <shane.smith@shopify.com>
Diffstat (limited to 'pkg/machine/wsl')
-rw-r--r--pkg/machine/wsl/machine.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/machine/wsl/machine.go b/pkg/machine/wsl/machine.go
index 0b2874baf..aeacf9b90 100644
--- a/pkg/machine/wsl/machine.go
+++ b/pkg/machine/wsl/machine.go
@@ -1312,6 +1312,7 @@ func GetVMInfos() ([]*machine.ListResponse, error) {
listEntry.RemoteUsername = vm.RemoteUsername
listEntry.Port = vm.Port
listEntry.IdentityPath = vm.IdentityPath
+ listEntry.Starting = false
running := vm.isRunning()
listEntry.CreatedAt, listEntry.LastUp, _ = vm.updateTimeStamps(running)