From 3a567dd4deac036795bed0056229cac805004677 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 18 Jun 2024 20:27:19 +0800 Subject: [PATCH] fix(host-deployer): ignore fatal exit when host.conf not exists (#20560) --- pkg/hostman/hostdeployer/deployserver/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/hostdeployer/deployserver/options.go b/pkg/hostman/hostdeployer/deployserver/options.go index 35b4577fa2..d46e5f27ac 100644 --- a/pkg/hostman/hostdeployer/deployserver/options.go +++ b/pkg/hostman/hostdeployer/deployserver/options.go @@ -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