summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-04 16:44:19 +0200
committerGitHub <noreply@github.com>2021-05-04 16:44:19 +0200
commitaf2418018b8a0d83734a7a329955f5a9938bdfbf (patch)
treea070d47ae807ddd62eb7b6bc125eac70e10cf663 /pkg/domain/infra/abi
parentdea6189982b4d128aa1ae9ce379a1f94b4eb8a8f (diff)
parent0c116f40d38a5d86c61a86e8ece19a6a88bd7141 (diff)
downloadpodman-af2418018b8a0d83734a7a329955f5a9938bdfbf.tar.gz
podman-af2418018b8a0d83734a7a329955f5a9938bdfbf.tar.bz2
podman-af2418018b8a0d83734a7a329955f5a9938bdfbf.zip
Merge pull request #8828 from boaz0/closes_8779
Add --all to podman start
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/containers.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index 6f8845f10..82f2a2424 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -693,14 +693,17 @@ func (ic *ContainerEngine) ContainerExecDetached(ctx context.Context, nameOrID s
func (ic *ContainerEngine) ContainerStart(ctx context.Context, namesOrIds []string, options entities.ContainerStartOptions) ([]*entities.ContainerStartReport, error) {
reports := []*entities.ContainerStartReport{}
var exitCode = define.ExecErrorCodeGeneric
- ctrs, rawInputs, err := getContainersAndInputByContext(false, options.Latest, namesOrIds, ic.Libpod)
+ ctrs, rawInputs, err := getContainersAndInputByContext(options.All, options.Latest, namesOrIds, ic.Libpod)
if err != nil {
return nil, err
}
// There can only be one container if attach was used
for i := range ctrs {
ctr := ctrs[i]
- rawInput := rawInputs[i]
+ rawInput := ctr.ID()
+ if !options.All {
+ rawInput = rawInputs[i]
+ }
ctrState, err := ctr.State()
if err != nil {
return nil, err