Commit fbd03e5b authored by Mike Danese's avatar Mike Danese

fix variable shadowing bug where provided RootCA would always be a nil byte slice

parent 1904d4e1
...@@ -250,7 +250,7 @@ func (s *CMServer) Run(_ []string) error { ...@@ -250,7 +250,7 @@ func (s *CMServer) Run(_ []string) error {
var rootCA []byte var rootCA []byte
if s.RootCAFile != "" { if s.RootCAFile != "" {
rootCA, err := ioutil.ReadFile(s.RootCAFile) rootCA, err = ioutil.ReadFile(s.RootCAFile)
if err != nil { if err != nil {
return fmt.Errorf("error reading root-ca-file at %s: %v", s.RootCAFile, err) return fmt.Errorf("error reading root-ca-file at %s: %v", s.RootCAFile, err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment