summaryrefslogtreecommitdiff
path: root/pkg/bindings/play
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2021-09-11 23:15:49 +0200
committerMiloslav Trmač <mitr@redhat.com>2021-12-10 18:16:24 +0100
commit3725a34cbf592697d5fca3089d14045c66975fda (patch)
treedec42fad7fe2b5db96ffab3eb0bbe6e3bd3da178 /pkg/bindings/play
parent78dd79752044d9ccc812a9ebd5a9c708302c0f26 (diff)
downloadpodman-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/play')
-rw-r--r--pkg/bindings/play/play.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/play/play.go b/pkg/bindings/play/play.go
index 2cd7c3997..64a2ae6ae 100644
--- a/pkg/bindings/play/play.go
+++ b/pkg/bindings/play/play.go
@@ -40,7 +40,7 @@ func Kube(ctx context.Context, path string, options *KubeOptions) (*entities.Pla
}
// TODO: have a global system context we can pass around (1st argument)
- header, err := auth.Header(nil, auth.XRegistryAuthHeader, options.GetAuthfile(), options.GetUsername(), options.GetPassword())
+ header, err := auth.MakeXRegistryAuthHeader(nil, options.GetAuthfile(), options.GetUsername(), options.GetPassword())
if err != nil {
return nil, err
}