Skip to content

Commit

Permalink
Merge pull request #4776 from randomvariable/automated-cherry-pick-of…
Browse files Browse the repository at this point in the history
…-#4774-release-0.3

🐛 unmarshal data to a pointer when parsing kubetest config
  • Loading branch information
k8s-ci-robot authored Jun 9, 2021
2 parents 2ac7d74 + b3cf050 commit 665d566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/framework/kubetest/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func parseKubetestConfig(kubetestConfigFile string) (kubetestConfig, error) {
if err != nil {
return nil, fmt.Errorf("unable to read kubetest config file %s: %w", kubetestConfigFile, err)
}
if err := yaml.Unmarshal(data, conf); err != nil {
if err := yaml.Unmarshal(data, &conf); err != nil {
return nil, fmt.Errorf("unable to parse kubetest config file %s as valid, non-nested YAML: %w", kubetestConfigFile, err)
}
return conf, nil
Expand Down

0 comments on commit 665d566

Please sign in to comment.