Skip to content

Commit

Permalink
test/e2e: fix segfault in case no e2e config file is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
marquiz committed Sep 14, 2022
1 parent 9d5d7cf commit 02955b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (conf *E2EConfig) GetKubeletConfig() KubeletConfig {
ConfigPath: DefaultConfigPath,
PodResourcesSocketPath: DefaultPodResourcesSocketPath,
}
if conf.Kubelet == nil {
if conf == nil || conf.Kubelet == nil {
return kcfg
}
if conf.Kubelet.ConfigPath != "" {
Expand Down

0 comments on commit 02955b5

Please sign in to comment.