diff options
author | Matej Vasek <mvasek@redhat.com> | 2021-02-01 21:23:44 +0100 |
---|---|---|
committer | Matej Vasek <mvasek@redhat.com> | 2021-02-03 21:49:09 +0100 |
commit | fc385806dfe1d13a7d4e4bdaeea93a22a55bd3d4 (patch) | |
tree | 1551262302d3cf31740cfd3474d150e1c2b21422 /cmd | |
parent | 570e1587dde267adea7fe460086dffee6aec83a4 (diff) | |
download | podman-fc385806dfe1d13a7d4e4bdaeea93a22a55bd3d4.tar.gz podman-fc385806dfe1d13a7d4e4bdaeea93a22a55bd3d4.tar.bz2 podman-fc385806dfe1d13a7d4e4bdaeea93a22a55bd3d4.zip |
Improve ContainerEngine.ContainerWait()
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/containers/wait.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/containers/wait.go b/cmd/podman/containers/wait.go index 14d660678..7a531b98a 100644 --- a/cmd/podman/containers/wait.go +++ b/cmd/podman/containers/wait.go @@ -95,10 +95,11 @@ func wait(cmd *cobra.Command, args []string) error { return errors.New("--latest and containers cannot be used together") } - waitOptions.Condition, err = define.StringToContainerStatus(waitCondition) + cond, err := define.StringToContainerStatus(waitCondition) if err != nil { return err } + waitOptions.Condition = []define.ContainerStatus{cond} responses, err := registry.ContainerEngine().ContainerWait(context.Background(), args, waitOptions) if err != nil { |