From d773f56aae1102c94ce60906fee5f35d0a682c29 Mon Sep 17 00:00:00 2001 From: Tomoya AMACHI Date: Thu, 9 May 2019 11:18:01 +0900 Subject: [PATCH] change var name : GCRCredPath -> GcpCredPath --- extractor/docker/docker.go | 2 +- extractor/docker/token/gcr/gcr.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extractor/docker/docker.go b/extractor/docker/docker.go index 10d9f244ba..2da0831f7a 100644 --- a/extractor/docker/docker.go +++ b/extractor/docker/docker.go @@ -48,7 +48,7 @@ type DockerOption struct { AuthURL string UserName string Password string - GCRCredPath string + GcpCredPath string AwsAccessKey string AwsSecretKey string AwsRegion string diff --git a/extractor/docker/token/gcr/gcr.go b/extractor/docker/token/gcr/gcr.go index 59170b6e0e..e91a140e4b 100644 --- a/extractor/docker/token/gcr/gcr.go +++ b/extractor/docker/token/gcr/gcr.go @@ -32,8 +32,8 @@ func (g *GCR) CheckOptions(domain string, d docker.DockerOption) error { } g.Auth = types.AuthConfig{} - if d.GCRCredPath != "" { - g.Store = store.NewGCRCredStore(d.GCRCredPath) + if d.GcpCredPath != "" { + g.Store = store.NewGCRCredStore(d.GcpCredPath) } return nil }