katautils: fix the issue of missing proxy debug config

When used builtin proxy, it's better to config the proxy
debug based on debug setting of runtime in kata configuration.

Fixes:#1495

Signed-off-by: lifupan <lifupan@gmail.com>
This commit is contained in:
lifupan 2019-04-08 03:39:45 -04:00
parent fef124921c
commit 8041fc9314

View File

@ -598,6 +598,9 @@ func updateRuntimeConfigHypervisor(configPath string, tomlConf tomlConfig, confi
func updateRuntimeConfigProxy(configPath string, tomlConf tomlConfig, config *oci.RuntimeConfig, builtIn bool) error {
if builtIn {
config.ProxyType = vc.KataBuiltInProxyType
config.ProxyConfig = vc.ProxyConfig{
Debug: config.Debug,
}
return nil
}