Update default.go

This commit is contained in:
pixiake 2020-05-23 13:31:21 +08:00 committed by pixiake
parent 856637c3dd
commit 70c8d02a73

View File

@ -19,7 +19,7 @@ func ParseClusterCfg(clusterCfgPath string, all bool, logger *log.Logger) (*kube
if len(clusterCfgPath) == 0 {
currentDir, err := filepath.Abs(filepath.Dir(os.Args[0]))
if err != nil {
return nil, errors.Wrap(err, "Faild to get current dir")
return nil, errors.Wrap(err, "Failed to look up current directory")
}
cfgFile := fmt.Sprintf("%s/config.yaml", currentDir)
if util.IsExist(cfgFile) {