Skip to content

Commit

Permalink
Fix init config with check config (#583)
Browse files Browse the repository at this point in the history
Signed-off-by: lucklove <gnu.crazier@gmail.com>
  • Loading branch information
lucklove authored Jul 7, 2020
1 parent 9256e02 commit c391ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/spec/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ func mergeImported(importConfig []byte, specConfigs ...map[string]interface{}) (
func checkConfig(e executor.Executor, componentName, clusterVersion, nodeOS, arch, config string, paths meta.DirPaths) error {
repo, err := clusterutil.NewRepository(nodeOS, arch)
if err != nil {
return err
return perrs.Annotate(ErrorCheckConfig, err.Error())
}
ver := ComponentVersion(componentName, clusterVersion)
entry, err := repo.ComponentBinEntry(componentName, ver)
if err != nil {
return err
return perrs.Annotate(ErrorCheckConfig, err.Error())
}

binPath := path.Join(paths.Deploy, "bin", entry)
Expand Down

0 comments on commit c391ff5

Please sign in to comment.