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

Allow Hash keys as Array #337

Open
tuxmea opened this issue Jan 11, 2023 · 2 comments
Open

Allow Hash keys as Array #337

tuxmea opened this issue Jan 11, 2023 · 2 comments

Comments

@tuxmea
Copy link
Member

tuxmea commented Jan 11, 2023

I want to set a hash key to an array:

stdlib::manage::create_resources:
  package:
    ['htop', 'strace', 'less']:
      ensure: installed

EYaml produces the following error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Value for key 'stdlib::manage::create_resources', returned from lookup_key function 'eyaml_lookup_key', when using location '/etc/puppetlabs/code/environments/production/data/common.yaml', has wrong type, expects Puppet::LookupValue, got Hash[String, Hash[Array[Enum['htop', 'less', 'strace'], 3, 3], Hash[String, String, 1, 1], 1, 1], 1, 1] on node puppet5.ma.betadots.training
@kenyon
Copy link
Member

kenyon commented Jan 12, 2023

I wonder if this error is even coming from hiera-eyaml.

@tuxmea
Copy link
Member Author

tuxmea commented Jan 12, 2023

@kenyon I suppose that this comes from hiera. See https://tickets.puppetlabs.com/browse/HI-637

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

2 participants