diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-25 01:26:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 01:26:21 +0100 |
commit | 69b011d3ac39b985cdbd2bacfa1eaeba166bf224 (patch) | |
tree | 21791a26464b4fe55fd879b7c649ea8cd63884db /cmd/podmanV2/registry/registry.go | |
parent | b4520649af59780df494d75f50d0b5081eafff04 (diff) | |
parent | 1d7cb7cc48d06631e2bdfd0e25eeccc8e87b042f (diff) | |
download | podman-69b011d3ac39b985cdbd2bacfa1eaeba166bf224.tar.gz podman-69b011d3ac39b985cdbd2bacfa1eaeba166bf224.tar.bz2 podman-69b011d3ac39b985cdbd2bacfa1eaeba166bf224.zip |
Merge pull request #5604 from jwhonce/wip/images
V2 podman images/image list
Diffstat (limited to 'cmd/podmanV2/registry/registry.go')
-rw-r--r-- | cmd/podmanV2/registry/registry.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/podmanV2/registry/registry.go b/cmd/podmanV2/registry/registry.go index 9c12b2456..f0650a7cf 100644 --- a/cmd/podmanV2/registry/registry.go +++ b/cmd/podmanV2/registry/registry.go @@ -21,6 +21,7 @@ var ( imageEngine entities.ImageEngine containerEngine entities.ContainerEngine + cliCtx context.Context EngineOptions entities.EngineOptions @@ -125,3 +126,10 @@ func Options(cmd *cobra.Command) (*entities.EngineOptions, error) { } return nil, nil } + +func GetContext() context.Context { + if cliCtx == nil { + cliCtx = context.TODO() + } + return cliCtx +} |