From dd7cd3923850c574ce4fbee9181f7dddd3c173b9 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 15 Feb 2023 17:42:34 -0800 Subject: [PATCH] fixed/manipcli: expand env on --api-cacert --- manipcli/cli.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manipcli/cli.go b/manipcli/cli.go index 923f5129..a5c2efcb 100644 --- a/manipcli/cli.go +++ b/manipcli/cli.go @@ -4,6 +4,7 @@ import ( "context" "crypto/tls" "fmt" + "os" "github.com/spf13/cobra" "github.com/spf13/pflag" @@ -56,7 +57,7 @@ func ManipulatorMakerFromFlags(options ...maniphttp.Option) ManipulatorMaker { api := viper.GetString(flagAPI) token := viper.GetString(flagToken) namespace := viper.GetString(flagNamespace) - capath := viper.GetString(flagCACertPath) + capath := os.ExpandEnv(viper.GetString(flagCACertPath)) skip := viper.GetBool(flagAPISkipVerify) encoding := viper.GetString(flagEncoding)