Skip to content

Commit

Permalink
Fix "configPath" appSource not picking up files
Browse files Browse the repository at this point in the history
  • Loading branch information
simt2 authored and Joshua Dotson committed Jul 13, 2018
1 parent 0be8411 commit bcf5783
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mhlib/appSource.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewAppSource(config AppSourceConfig, configFile string) (*AppSource, error)
if config.Kind == "path" {
pattern = config.Source + "/*.y*ml"
} else if config.Kind == "configPath" {
pattern = path.Dir(configFile) + config.Source + "/*.y*ml"
pattern = path.Dir(configFile) + "/" + config.Source + "/*.y*ml"
}

// Get all files the glob pattern matches
Expand Down
4 changes: 4 additions & 0 deletions mhlib/mhConfigFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func (c *MHConfigFile) EffectiveApps(logger *logrus.Entry, configFile string, fi
return nil, err
}

if len(appSource.Files) == 0 {
logger.WithField("appSource", appSource.Name).Warn("AppSource matches no files")
}

effectiveAppSources = append(effectiveAppSources, *appSource)
}

Expand Down

0 comments on commit bcf5783

Please sign in to comment.