Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Sep 7, 2019
1 parent a0ea732 commit a5d89b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/config_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (o *ImportConfigOptions) Run() error {
if len(caCertMatch) != 2 {
newCloud.Verify = false
} else {
newCloud.Verify = true
newCloud.CaCert = string(caCertMatch[1])
}
clouds.Clouds[string(context)] = newCloud
Expand All @@ -172,7 +173,7 @@ type clouds struct {
type cloud struct {
Auth cloudAuth `yaml:"auth"`
Verify bool `yaml:"verify"`
CaCert string `yaml:"cacert"`
CaCert string `yaml:"cacert,omitempty"`
}

type cloudAuth struct {
Expand Down

0 comments on commit a5d89b7

Please sign in to comment.