You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just spent a fair bit of time chasing an obscure exception (filing in a separate issue). It appears the code is looking for a default 'common.yaml' (emphasis on yAml). It's pretty common to abbreviate .yaml to .yml. May be a good feature to detect the alternate condensed .yml extension.
The text was updated successfully, but these errors were encountered:
defdatasourcefiles(backend,scope,extension,override=nil,hierarchy=nil)datadir=Backend.datadir(backend,scope)Backend.datasources(scope,override,hierarchy)do |source|
Hiera.debug("Looking for data source #{source}")file=datafile_in(datadir,source,extension)iffileyieldsource,fileendendend
Because the YAML backend hardcodes "yaml" as the argument bound to extension, the only way for us to override it is to subclass Hiera::Backend::Yaml_backend and invoke datasourcefiles with "yml" as well. This is probably overkill, but maybe we should at least warn users about the issue.
Hello,
Just spent a fair bit of time chasing an obscure exception (filing in a separate issue). It appears the code is looking for a default 'common.yaml' (emphasis on yAml). It's pretty common to abbreviate .yaml to .yml. May be a good feature to detect the alternate condensed .yml extension.
The text was updated successfully, but these errors were encountered: