summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/auto-update.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-06-25 10:56:00 +0200
committerValentin Rothberg <rothberg@redhat.com>2021-07-13 13:52:46 +0200
commita90a4ec7c6be5bd293d22f562bf5f975e65c2990 (patch)
treec2e187f20c964927e73e52ea1c24647137fdbad8 /pkg/domain/infra/abi/auto-update.go
parenta8847c01fbdf022ebbd747653623700326d88666 (diff)
downloadpodman-a90a4ec7c6be5bd293d22f562bf5f975e65c2990.tar.gz
podman-a90a4ec7c6be5bd293d22f562bf5f975e65c2990.tar.bz2
podman-a90a4ec7c6be5bd293d22f562bf5f975e65c2990.zip
auto update: pass through a context
Pass a single context.Context through the call stack. If auto-updates will ever be made available for REST calls, the context will help supporting disconnected clients. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi/auto-update.go')
-rw-r--r--pkg/domain/infra/abi/auto-update.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/auto-update.go b/pkg/domain/infra/abi/auto-update.go
index c9d7f2130..0ae1b5198 100644
--- a/pkg/domain/infra/abi/auto-update.go
+++ b/pkg/domain/infra/abi/auto-update.go
@@ -12,6 +12,6 @@ func (ic *ContainerEngine) AutoUpdate(ctx context.Context, options entities.Auto
// 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)
+ units, failures := autoupdate.AutoUpdate(ctx, ic.Libpod, autoOpts)
return &entities.AutoUpdateReport{Units: units}, failures
}