Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix translation issue with version 5 hiera.yaml #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

logic
Copy link

@logic logic commented Oct 26, 2017

With the version 5 hiera.yaml format, we can still use older custom backends like this via hiera3_backend. There appears to be some magic to translate hash keys from name to :name for compatibility purposes, but it doesn't appear to recurse down into options more than one level deep, resulting in a mounts hash that looks like "generic"=>"foo"} instead of :mounts=>{:generic=>"puppet"}. This is a quick hack to just work around the problem, in lieu of a proper conversion to version 5.

With the version 5 `hiera.yaml` format, we can still use older custom backends like this via `hiera3_backend`. There appears to be some magic to translate hash keys from `name` to `:name` for compatibility purposes, but it doesn't appear to recurse down into options more than one level deep, resulting in a mounts hash that looks like `"generic"=>"foo"}` instead of `:mounts=>{:generic=>"puppet"}`. This is a quick hack to just work around the problem, in lieu of a proper conversion to version 5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant