fix(host-deployer): ignore fatal exit when host.conf not exists (#20558)

This commit is contained in:
Zexi Li
2024-06-18 20:26:44 +08:00
committed by GitHub
parent 8d55f7cf5d
commit b12f184551
@@ -52,7 +52,7 @@ var DeployOption SDeployOptions
func Parse() SDeployOptions {
var hostOpts SDeployOptions
common_options.ParseOptions(&hostOpts, os.Args, "host.conf", "host")
common_options.ParseOptionsIgnoreNoConfigfile(&hostOpts, os.Args, "host.conf", "host")
if len(hostOpts.CommonConfigFile) > 0 && fileutils2.Exists(hostOpts.CommonConfigFile) {
commonCfg := &host_options.SHostBaseOptions{}
commonCfg.Config = hostOpts.CommonConfigFile