Skip to content

Commit 6a6fcc0

Browse files
psycofdjjpalermo
authored andcommitted
consider only .yml files for runtime-config ops-files
1 parent fdacd10 commit 6a6fcc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtimeconfig/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package runtimeconfig
33
import (
44
"fmt"
55
"path/filepath"
6+
"strings"
67

78
"github.com/cloudfoundry/bosh-bootloader/bosh"
89
"github.com/cloudfoundry/bosh-bootloader/fileio"
@@ -90,7 +91,7 @@ func (m Manager) Update(state storage.State) error {
9091

9192
for _, file := range files {
9293
name := file.Name()
93-
if name != "runtime-config.yml" {
94+
if name != "runtime-config.yml" && strings.HasSuffix(name, ".yml") {
9495
opsFiles = append(opsFiles, filepath.Join(dir, name))
9596
}
9697
}

0 commit comments

Comments
 (0)