provisioing: always skip sample.yaml files

This commit is contained in:
bergquist
2018-02-14 11:33:58 +01:00
parent 165304a342
commit dba087463a
6 changed files with 50 additions and 2 deletions
@@ -24,7 +24,7 @@ func (cr *configReader) readConfig(path string) ([]*DatasourcesAsConfig, error)
}
for _, file := range files {
if strings.HasSuffix(file.Name(), ".yaml") || strings.HasSuffix(file.Name(), ".yml") {
if (strings.HasSuffix(file.Name(), ".yaml") || strings.HasSuffix(file.Name(), ".yml")) && file.Name() != "sample.yaml" {
datasource, err := cr.parseDatasourceConfig(path, file)
if err != nil {
return nil, err