Skip to content

Commit

Permalink
consider only .yml files for runtime-config ops-files
Browse files Browse the repository at this point in the history
  • Loading branch information
psycofdj authored and jpalermo committed Dec 21, 2023
1 parent fdacd10 commit 6a6fcc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtimeconfig/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package runtimeconfig
import (
"fmt"
"path/filepath"
"strings"

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

for _, file := range files {
name := file.Name()
if name != "runtime-config.yml" {
if name != "runtime-config.yml" && strings.HasSuffix(name, ".yml") {
opsFiles = append(opsFiles, filepath.Join(dir, name))
}
}
Expand Down

0 comments on commit 6a6fcc0

Please sign in to comment.