diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-25 08:20:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 08:20:38 -0400 |
commit | b4767817012a3aedaf05dc7a32bd823fcd3776f4 (patch) | |
tree | 2fa1c72aaecad072f3ea4b3283fed20e245c071e /cmd/podman/logout.go | |
parent | 2d191968b513d327e39376bf8fadd2b4267d15a2 (diff) | |
parent | f95b0995e521e252af52edaf57a31241d364e3d8 (diff) | |
download | podman-b4767817012a3aedaf05dc7a32bd823fcd3776f4.tar.gz podman-b4767817012a3aedaf05dc7a32bd823fcd3776f4.tar.bz2 podman-b4767817012a3aedaf05dc7a32bd823fcd3776f4.zip |
Merge pull request #10774 from vrothberg/registries
remove `pkg/registries`
Diffstat (limited to 'cmd/podman/logout.go')
-rw-r--r-- | cmd/podman/logout.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/podman/logout.go b/cmd/podman/logout.go index 092ad2610..0ee134635 100644 --- a/cmd/podman/logout.go +++ b/cmd/podman/logout.go @@ -8,7 +8,6 @@ import ( "github.com/containers/image/v5/types" "github.com/containers/podman/v3/cmd/podman/common" "github.com/containers/podman/v3/cmd/podman/registry" - "github.com/containers/podman/v3/pkg/registries" "github.com/spf13/cobra" ) @@ -48,9 +47,9 @@ func init() { // Implementation of podman-logout. func logout(cmd *cobra.Command, args []string) error { - sysCtx := types.SystemContext{ - AuthFilePath: logoutOptions.AuthFile, - SystemRegistriesConfPath: registries.SystemRegistriesConfPath(), + sysCtx := &types.SystemContext{ + AuthFilePath: logoutOptions.AuthFile, } - return auth.Logout(&sysCtx, &logoutOptions, args) + setRegistriesConfPath(sysCtx) + return auth.Logout(sysCtx, &logoutOptions, args) } |