provisioning: dont ignore sample yaml files

closes #10963
This commit is contained in:
bergquist
2018-02-20 08:40:37 +01:00
parent c5461fe2e2
commit 4dc6074e79
7 changed files with 51 additions and 46 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")) && file.Name() != "sample.yaml" {
if strings.HasSuffix(file.Name(), ".yaml") || strings.HasSuffix(file.Name(), ".yml") {
datasource, err := cr.parseDatasourceConfig(path, file)
if err != nil {
return nil, err