fix gpu options stripEmptyOptions
Signed-off-by: zhu733756 <talonzhu@yunify.com>
This commit is contained in:
@@ -302,4 +302,8 @@ func (conf *Config) stripEmptyOptions() {
|
||||
if conf.KubeEdgeOptions != nil && conf.KubeEdgeOptions.Endpoint == "" {
|
||||
conf.KubeEdgeOptions = nil
|
||||
}
|
||||
|
||||
if conf.GPUOptions != nil && len(conf.GPUOptions.Kinds) == 0 {
|
||||
conf.GPUOptions = nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user