diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-09 17:46:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 17:46:28 -0700 |
commit | 60ef8f8da90ec5200e62b79b24324fefde2c7036 (patch) | |
tree | ec403dcd9b0b80d188e400a18d432539b67faf28 /cmd/podman/wait.go | |
parent | 40a1df38d1b6971dd1df9e06bf190c924dbad5a3 (diff) | |
parent | 09ff62429a324e01ad2c584afe9a5f66f580ae78 (diff) | |
download | podman-60ef8f8da90ec5200e62b79b24324fefde2c7036.tar.gz podman-60ef8f8da90ec5200e62b79b24324fefde2c7036.tar.bz2 podman-60ef8f8da90ec5200e62b79b24324fefde2c7036.zip |
Merge pull request #2663 from jwhonce/wip/remote_umount
Implement podman-remote umount and rm command
Diffstat (limited to 'cmd/podman/wait.go')
-rw-r--r-- | cmd/podman/wait.go | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/cmd/podman/wait.go b/cmd/podman/wait.go index 4449898a0..827ac6826 100644 --- a/cmd/podman/wait.go +++ b/cmd/podman/wait.go @@ -1,8 +1,6 @@ package main import ( - "fmt" - "reflect" "time" "github.com/containers/libpod/cmd/podman/cliconfig" @@ -62,21 +60,5 @@ func waitCmd(c *cliconfig.WaitValues) error { if err != nil { return err } - - for _, id := range ok { - fmt.Println(id) - } - - if len(failures) > 0 { - keys := reflect.ValueOf(failures).MapKeys() - lastKey := keys[len(keys)-1].String() - lastErr := failures[lastKey] - delete(failures, lastKey) - - for _, err := range failures { - outputError(err) - } - return lastErr - } - return nil + return printCmdResults(ok, failures) } |