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

Ability to create empty hierarchy (for global config) #243

Open
nmaludy opened this issue Dec 6, 2018 · 0 comments
Open

Ability to create empty hierarchy (for global config) #243

nmaludy opened this issue Dec 6, 2018 · 0 comments

Comments

@nmaludy
Copy link
Member

nmaludy commented Dec 6, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.0.4
  • Distribution: CentOS 7
  • Module version: 3.3.4

How to reproduce (e.g Puppet code you use)

  class { '::hiera':
    hiera_version      => '5',
    hiera5_defaults    => {
      'datadir'   => 'data',
      'data_hash' => 'yaml_data',
    },
    hierarchy          => [],
    puppet_conf_manage => false,
    eyaml              => true,
  }

What are you seeing

$ cat /etc/puppetlabs/puppet/hiera.yaml
# hiera.yaml Managed by Puppet
version: 5
defaults:
  datadir: data
  data_hash: yaml_data
hierarchy:

What behaviour did you expect instead

$ cat /etc/puppetlabs/puppet/hiera.yaml
# hiera.yaml Managed by Puppet
version: 5
defaults:
  datadir: data
  data_hash: yaml_data
hierarchy: []

Any additional information you'd like to impart

It would be great if an empty hierarchy was created when an empty array was passed in.

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