diff options
author | Miloslav Trmač <mitr@redhat.com> | 2021-09-11 23:15:49 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2021-12-10 18:16:24 +0100 |
commit | 3725a34cbf592697d5fca3089d14045c66975fda (patch) | |
tree | dec42fad7fe2b5db96ffab3eb0bbe6e3bd3da178 /pkg/bindings/images/build.go | |
parent | 78dd79752044d9ccc812a9ebd5a9c708302c0f26 (diff) | |
download | podman-3725a34cbf592697d5fca3089d14045c66975fda.tar.gz podman-3725a34cbf592697d5fca3089d14045c66975fda.tar.bz2 podman-3725a34cbf592697d5fca3089d14045c66975fda.zip |
Call MakeXRegistryAuthHeader instead of Header(..., XRegistryAuthHeader)
All callers hard-code a header value, so this is actually shorter.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/bindings/images/build.go')
-rw-r--r-- | pkg/bindings/images/build.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go index 0f73604e1..f643b3c89 100644 --- a/pkg/bindings/images/build.go +++ b/pkg/bindings/images/build.go @@ -297,7 +297,7 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO headers, err = auth.MakeXRegistryConfigHeader(options.SystemContext, "", "", "") } else { if options.SystemContext.DockerAuthConfig != nil { - headers, err = auth.Header(options.SystemContext, auth.XRegistryAuthHeader, options.SystemContext.AuthFilePath, options.SystemContext.DockerAuthConfig.Username, options.SystemContext.DockerAuthConfig.Password) + headers, err = auth.MakeXRegistryAuthHeader(options.SystemContext, options.SystemContext.AuthFilePath, options.SystemContext.DockerAuthConfig.Username, options.SystemContext.DockerAuthConfig.Password) } else { headers, err = auth.MakeXRegistryConfigHeader(options.SystemContext, options.SystemContext.AuthFilePath, "", "") } |