mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix(host-deployer): ignore fatal exit when host.conf not exists (#20558)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user