diff --git a/command/meta.go b/command/meta.go index 5529c3211..96f53f1f5 100644 --- a/command/meta.go +++ b/command/meta.go @@ -25,7 +25,7 @@ import ( const EnvVaultAddress = "VAULT_ADDR" const EnvVaultCACert = "VAULT_CACERT" const EnvVaultCAPath = "VAULT_CAPATH" -const EnvVaultInsecure = "VAULT_INSECURE" +const EnvVaultInsecure = "VAULT_SKIP_VERIFY" // FlagSetFlags is an enum to define what flags are present in the // default FlagSet returned by Meta.FlagSet. diff --git a/command/meta_test.go b/command/meta_test.go index 1d72a8bef..e80a41c0a 100644 --- a/command/meta_test.go +++ b/command/meta_test.go @@ -44,10 +44,10 @@ func TestFlagSet(t *testing.T) { func TestEnvSettings(t *testing.T) { os.Setenv("VAULT_CACERT", "/path/to/fake/cert.crt") os.Setenv("VAULT_CAPATH", "/path/to/fake/certs") - os.Setenv("VAULT_INSECURE", "true") + os.Setenv("VAULT_SKIP_VERIFY", "true") defer os.Setenv("VAULT_CACERT", "") defer os.Setenv("VAULT_CAPATH", "") - defer os.Setenv("VAULT_INSECURE", "") + defer os.Setenv("VAULT_SKIP_VERIFY", "") var m Meta // Err is ignored as it is expected that the test settings