summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-02-01 21:23:44 +0100
committerMatej Vasek <mvasek@redhat.com>2021-02-03 21:49:09 +0100
commitfc385806dfe1d13a7d4e4bdaeea93a22a55bd3d4 (patch)
tree1551262302d3cf31740cfd3474d150e1c2b21422 /cmd/podman
parent570e1587dde267adea7fe460086dffee6aec83a4 (diff)
downloadpodman-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/podman')
-rw-r--r--cmd/podman/containers/wait.go3
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 {