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

Commit

Permalink
Merge pull request #36 from kthcloud/dev
Browse files Browse the repository at this point in the history
Fix cluster names
  • Loading branch information
saffronjam authored May 10, 2024
2 parents 8938460 + 96be882 commit 35bc760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func Setup() error {
continue
}

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

0 comments on commit 35bc760

Please sign in to comment.