mirror of
https://github.com/genuinetools/reg.git
synced 2024-06-30 11:04:16 -04:00
fix fmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
533d292bfb
commit
ac2e616697
|
@ -110,7 +110,7 @@ func (c *Clair) NewClairLayer(r *registry.Registry, image string, fsLayers []sch
|
||||||
}
|
}
|
||||||
|
|
||||||
if token == "" || useBasicAuth {
|
if token == "" || useBasicAuth {
|
||||||
c.Logf("clair.vulns using basic auth")
|
c.Logf("clair.vulns using basic auth")
|
||||||
h = map[string]string{
|
h = map[string]string{
|
||||||
"Authorization": fmt.Sprintf("Basic %s", base64.StdEncoding.EncodeToString([]byte(r.Username+":"+r.Password))),
|
"Authorization": fmt.Sprintf("Basic %s", base64.StdEncoding.EncodeToString([]byte(r.Username+":"+r.Password))),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue