summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-05-01 08:36:48 -0700
committerJhon Honce <jhonce@redhat.com>2020-05-01 11:22:39 -0700
commitb22a39b6b15bd082f7d4c83d306e43b2e6ca856b (patch)
treeb63e5c6dfcd3f9f9f3f395f1167a580a50fd7b8b /pkg/domain/infra
parent399939a3de0740054d7d0f9fc97ab2466beb9916 (diff)
downloadpodman-b22a39b6b15bd082f7d4c83d306e43b2e6ca856b.tar.gz
podman-b22a39b6b15bd082f7d4c83d306e43b2e6ca856b.tar.bz2
podman-b22a39b6b15bd082f7d4c83d306e43b2e6ca856b.zip
[CI:DOCS] Bring README.md up to date
* Add notes on helper functions * Update example Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/containers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index 82bf82bf0..8b390d04e 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -514,7 +514,8 @@ func (ic *ContainerEngine) ContainerAttach(ctx context.Context, nameOrId string,
}
// If the container is in a pod, also set to recursively start dependencies
- if err := terminal.StartAttachCtr(ctx, ctr, options.Stdout, options.Stderr, options.Stdin, options.DetachKeys, options.SigProxy, false, ctr.PodID() != ""); err != nil && errors.Cause(err) != define.ErrDetach {
+ err = terminal.StartAttachCtr(ctx, ctr, options.Stdout, options.Stderr, options.Stdin, options.DetachKeys, options.SigProxy, false, ctr.PodID() != "")
+ if err != nil && errors.Cause(err) != define.ErrDetach {
return errors.Wrapf(err, "error attaching to container %s", ctr.ID())
}
return nil