Skip to content

Commit

Permalink
fix: handle unexpected errors when checking for atmos.d path in InitC…
Browse files Browse the repository at this point in the history
…liConfig
  • Loading branch information
haitham911 committed Nov 24, 2024
1 parent 000e439 commit 4493540
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ func InitCliConfig(configAndStacksInfo schema.ConfigAndStacksInfo, processStacks
_, err := os.Stat(atmosDPath)
if err == nil {
cliConfig.Import = []string{"atmos.d/**/*.yaml"}
} else if !os.IsNotExist(err) {
return cliConfig, err // Handle unexpected errors
}
}
// Process imports if any
Expand Down

0 comments on commit 4493540

Please sign in to comment.