summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 13:41:08 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 13:41:08 +0200
commit4028215b6a83cc8bd059ad1e902dc3e6a39e1b74 (patch)
treed0768cfe1ec03665f4bbfe0850075b4081795bda
parent246c0053c15a827b806003566f6f244adde3b80e (diff)
downloadpodman-4028215b6a83cc8bd059ad1e902dc3e6a39e1b74.tar.gz
podman-4028215b6a83cc8bd059ad1e902dc3e6a39e1b74.tar.bz2
podman-4028215b6a83cc8bd059ad1e902dc3e6a39e1b74.zip
pkg, pods: not lose pod start/restart errors
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/domain/infra/abi/pods.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/pods.go b/pkg/domain/infra/abi/pods.go
index 2d1c09670..49f9f2771 100644
--- a/pkg/domain/infra/abi/pods.go
+++ b/pkg/domain/infra/abi/pods.go
@@ -180,6 +180,7 @@ func (ic *ContainerEngine) PodRestart(ctx context.Context, namesOrIds []string,
errs, err := p.Restart(ctx)
if err != nil {
report.Errs = []error{err}
+ reports = append(reports, &report)
continue
}
if len(errs) > 0 {
@@ -207,6 +208,7 @@ func (ic *ContainerEngine) PodStart(ctx context.Context, namesOrIds []string, op
errs, err := p.Start(ctx)
if err != nil {
report.Errs = []error{err}
+ reports = append(reports, &report)
continue
}
if len(errs) > 0 {