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

Singleton array #9

Open
stevedwray opened this issue Aug 12, 2014 · 0 comments
Open

Singleton array #9

stevedwray opened this issue Aug 12, 2014 · 0 comments

Comments

@stevedwray
Copy link

I was developing some Puppet code to create YAML for bind resource records (using Inkblots bind module) out of existing Hiera data (for server network interfaces) when I came across this in my test code:

yaml_setting {
"host1_rrdata":
   target => "/tmp/yaml_setting.yaml",
   key => "dns_rrs/host1/rrdata",
   value => [ "10.0.0.1" ];
 }

results in
dns_rrs:
host1:
rrdata: "10.0.0.1"

rather than the expected
dns_rrs:
host1:
rrdata:
- "10.0.0.1"

specifying type => 'array' made it generate a YAML array but I think giving it an array, even with one element, should have worked.

If I gave it an array with multiple entries in the Puppet code it worked fine.

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

No branches or pull requests

1 participant