From ad766396b9b053a289240f400ec494b13d63c529 Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Sat, 14 Jan 2017 22:23:48 -0600 Subject: [PATCH] Properly set creds for DOCKER_USER for klar --- plugin.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin.go b/plugin.go index bed4578..abeb5e4 100644 --- a/plugin.go +++ b/plugin.go @@ -20,12 +20,12 @@ type ( func (p Plugin) Exec() error { os.Setenv("CLAIR_ADDR", p.Url) - _, exist := os.LookupEnv("DOCKER_USERNAME") - if ! exist { - os.Setenv("DOCKER_USERNAME", p.Username) + _, exist := os.LookupEnv("DOCKER_USER") + if !exist { + os.Setenv("DOCKER_USER", p.Username) } _, exist = os.LookupEnv("DOCKER_PASSWORD") - if ! exist { + if !exist { os.Setenv("DOCKER_PASSWORD", p.Password) }