diff options
author | Shane Smith <shane.smith@shopify.com> | 2022-06-07 12:57:54 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-06-14 16:12:10 -0400 |
commit | bc8f7b3b430d4c0d89ac02b65ad69a474b01d791 (patch) | |
tree | 505a1ccd8afd21688bf59f2730142f4fb378aa24 /cmd/podman/machine/start.go | |
parent | d5fb5679c62d9c602a2878b1eb880c8e78969649 (diff) | |
download | podman-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 'cmd/podman/machine/start.go')
-rw-r--r-- | cmd/podman/machine/start.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/machine/start.go b/cmd/podman/machine/start.go index c9b99e63b..3bd7f4a25 100644 --- a/cmd/podman/machine/start.go +++ b/cmd/podman/machine/start.go @@ -56,7 +56,7 @@ func start(_ *cobra.Command, args []string) error { if vmName == activeName { return errors.Wrapf(machine.ErrVMAlreadyRunning, "cannot start VM %s", vmName) } - return errors.Wrapf(machine.ErrMultipleActiveVM, "cannot start VM %s. VM %s is currently running", vmName, activeName) + return errors.Wrapf(machine.ErrMultipleActiveVM, "cannot start VM %s. VM %s is currently running or starting", vmName, activeName) } fmt.Printf("Starting machine %q\n", vmName) if err := vm.Start(vmName, machine.StartOptions{}); err != nil { |