summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-24 17:07:14 +0200
committerGitHub <noreply@github.com>2020-07-24 17:07:14 +0200
commitc2deeff10101a5d9da70ecf496f8bdfc4ec99fb4 (patch)
treeb94c9dab931833fc86501ff661059b63a33dbc29 /cmd
parent417cc413981369b0156a7f0ad49081b2a924597e (diff)
parent099649ac1b8d6933ab2ad5c725c4e4de8e1608f3 (diff)
downloadpodman-c2deeff10101a5d9da70ecf496f8bdfc4ec99fb4.tar.gz
podman-c2deeff10101a5d9da70ecf496f8bdfc4ec99fb4.tar.bz2
podman-c2deeff10101a5d9da70ecf496f8bdfc4ec99fb4.zip
Merge pull request #7068 from mheon/start_attach_no_ctrid
The `podman start --attach` command should not print ID
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/start.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/containers/start.go b/cmd/podman/containers/start.go
index 21f22b986..8f9984421 100644
--- a/cmd/podman/containers/start.go
+++ b/cmd/podman/containers/start.go
@@ -99,7 +99,7 @@ func start(cmd *cobra.Command, args []string) error {
}
for _, r := range responses {
- if r.Err == nil {
+ if r.Err == nil && !startOptions.Attach {
fmt.Println(r.RawInput)
} else {
errs = append(errs, r.Err)