Skip to content

Commit

Permalink
fix: weird config error where IsDir() doesn't seem to work for k8s (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-pinson committed Jan 10, 2022
1 parent adafc67 commit 13b1d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (c *Configuration) load(reload ...bool) *Configuration {

var rc Configuration
for _, resourceConfig := range resourceConfigs {
if !resourceConfig.IsDir() {
if !resourceConfig.IsDir() && resourceConfig.Name() != "..data" {
yamlFile, err := ioutil.ReadFile("config/resources/" + resourceConfig.Name())
if err != nil {
log.Fatalf("config.load(): %v ", err)
Expand Down

0 comments on commit 13b1d2c

Please sign in to comment.