Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit 35bc760

Browse files
authored
Merge pull request #36 from kthcloud/dev
Fix cluster names
2 parents 8938460 + 96be882 commit 35bc760

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/config/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ func Setup() error {
4444
continue
4545
}
4646

47-
clusterName := strings.TrimSuffix(file.Name(), filepath[strings.LastIndex(filepath, "."):])
47+
filename := file.Name()
48+
clusterName := strings.TrimSuffix(filename, filename[strings.LastIndex(filename, "."):])
4849
configData, err := os.ReadFile(models.Config.K8s.ConfigDir + "/" + file.Name())
4950
if err != nil {
5051
fmt.Println(makeError(err))

0 commit comments

Comments
 (0)