Skip to content

Commit

Permalink
Update pkg/cluster/ansible/import.go
Browse files Browse the repository at this point in the history
Co-authored-by: Allen Zhong <[email protected]>
  • Loading branch information
lucklove and AstroProfundis authored May 10, 2021
1 parent d61339b commit e735735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/ansible/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func diffConfigs(configs []map[string]interface{}) (global map[string]interface{
func CommentConfig(clsName string) error {
dir := spec.ClusterPath(clsName, spec.AnsibleImportedConfigPath)
err := filepath.Walk(dir, func(path string, info fs.FileInfo, err error) error {
if err != nil || info.IsDir() && !strings.HasSuffix(info.Name(), ".toml") {
if err != nil || info.IsDir() || !strings.HasSuffix(info.Name(), ".toml") {
return nil
}

Expand Down

0 comments on commit e735735

Please sign in to comment.