Skip to content

Commit

Permalink
fixed/manipcli: expand env on --api-cacert
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Mercadal committed Feb 16, 2023
1 parent d12c8b2 commit dd7cd39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manipcli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"crypto/tls"
"fmt"
"os"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit dd7cd39

Please sign in to comment.