Skip to content

Commit

Permalink
fix(config): Fix WATCH_DOMAINS env not being split on space
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 16, 2024
1 parent 47034ca commit 4e80fcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func (c *Config) Load(cmd *cobra.Command, args []string) error {
cmd.Flags().VisitAll(func(f *pflag.Flag) {
if !f.Changed {
if val, ok := os.LookupEnv(EnvName(f.Name)); ok {
if f.Name == FlagDomains {
val = strings.ReplaceAll(val, " ", ",")
}
if err := f.Value.Set(val); err != nil {
errs = append(errs, err)
}
Expand Down

0 comments on commit 4e80fcc

Please sign in to comment.