Skip to content

Commit f13f7bc

Browse files
authored
Merge pull request #4774 from chewong/unmarshal-to-pointer
🐛 unmarshal data to a pointer when parsing kubetest config
2 parents 027f39e + c6a6c2c commit f13f7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/kubetest/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func parseKubetestConfig(kubetestConfigFile string) (kubetestConfig, error) {
183183
if err != nil {
184184
return nil, fmt.Errorf("unable to read kubetest config file %s: %w", kubetestConfigFile, err)
185185
}
186-
if err := yaml.Unmarshal(data, conf); err != nil {
186+
if err := yaml.Unmarshal(data, &conf); err != nil {
187187
return nil, fmt.Errorf("unable to parse kubetest config file %s as valid, non-nested YAML: %w", kubetestConfigFile, err)
188188
}
189189
return conf, nil

0 commit comments

Comments
 (0)