diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-11-22 18:26:55 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-11-23 10:17:52 +0100 |
commit | ececd82c625a2dbe0e0071e8e1930400fc47b9a3 (patch) | |
tree | 67d66373af3579c07c4f2e4227774fb3b351c5c7 /client/go/cmd/config.go | |
parent | 6dcfb15408ff18f36093322ed47f6feaea9006c3 (diff) |
Use ENV for overrides, allow cluster for cloudTarget service, add test cmd
Diffstat (limited to 'client/go/cmd/config.go')
-rw-r--r-- | client/go/cmd/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/go/cmd/config.go b/client/go/cmd/config.go index ac23eb8d59d..966080dbdc2 100644 --- a/client/go/cmd/config.go +++ b/client/go/cmd/config.go @@ -133,14 +133,14 @@ func (c *Config) Write() error { } func (c *Config) CertificatePath(app vespa.ApplicationID) (string, error) { - if override, _ := c.Get(dataPlaneCertFlag); override != "" { + if override, ok := os.LookupEnv("VESPA_CLI_DATA_PLANE_CERT_FILE"); ok { return override, nil } return c.applicationFilePath(app, "data-plane-public-cert.pem") } func (c *Config) PrivateKeyPath(app vespa.ApplicationID) (string, error) { - if override, _ := c.Get(dataPlaneKeyFlag); override != "" { + if override, ok := os.LookupEnv("VESPA_CLI_DATA_PLANE_KEY_FILE"); ok { return override, nil } return c.applicationFilePath(app, "data-plane-private-key.pem") |