diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-14 15:26:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 15:26:01 -0400 |
commit | ce4c23c4af3adb6b2d41d337720bb78be5db0f71 (patch) | |
tree | 98807acc34961759539e6d3c19da3f011a773032 /pkg/domain/infra/abi/auto-update.go | |
parent | 9570bf6b30ae35a4227a021c5ef7382515f2a790 (diff) | |
parent | 01cfb51fe989f5b3d810961e6813653f10ea541a (diff) | |
download | podman-ce4c23c4af3adb6b2d41d337720bb78be5db0f71.tar.gz podman-ce4c23c4af3adb6b2d41d337720bb78be5db0f71.tar.bz2 podman-ce4c23c4af3adb6b2d41d337720bb78be5db0f71.zip |
Merge pull request #10880 from vrothberg/auto-update
auto-update: make output more user friendly
Diffstat (limited to 'pkg/domain/infra/abi/auto-update.go')
-rw-r--r-- | pkg/domain/infra/abi/auto-update.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/domain/infra/abi/auto-update.go b/pkg/domain/infra/abi/auto-update.go index c9d7f2130..daa882ecf 100644 --- a/pkg/domain/infra/abi/auto-update.go +++ b/pkg/domain/infra/abi/auto-update.go @@ -7,11 +7,10 @@ import ( "github.com/containers/podman/v3/pkg/domain/entities" ) -func (ic *ContainerEngine) AutoUpdate(ctx context.Context, options entities.AutoUpdateOptions) (*entities.AutoUpdateReport, []error) { +func (ic *ContainerEngine) AutoUpdate(ctx context.Context, options entities.AutoUpdateOptions) ([]*entities.AutoUpdateReport, []error) { // Convert the entities options to the autoupdate ones. We can't use // them in the entities package as low-level packages must not leak // into the remote client. autoOpts := autoupdate.Options{Authfile: options.Authfile} - units, failures := autoupdate.AutoUpdate(ic.Libpod, autoOpts) - return &entities.AutoUpdateReport{Units: units}, failures + return autoupdate.AutoUpdate(ctx, ic.Libpod, autoOpts) } |