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

The first element of the merge has wrong type, expects a Hash value, got String #324

Open
redst011 opened this issue Nov 1, 2023 · 0 comments

Comments

@redst011
Copy link

redst011 commented Nov 1, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.26.0
  • Ruby: ?
  • Distribution: Red Hat Enterprise Linux release 8.8 (Ootpa)
  • Module version: 7.1.0

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

puppet agent -t

What are you seeing

Info: Using environment 'feature_module_update'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, The first element of the merge has wrong type, expects a Hash value, got String (file: /etc/puppetlabs/code/environments/feature_module_update/modules/yum/manifests/init.pp, line: 203) on node rhel-8-wks-test.ctc.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Any additional information you'd like to impart

The code this is referencing is below:

unless defined(Yum::Config['installonly_limit']) {
yum::config { 'installonly_limit': ensure => '3' } <---------
}

This same issue appears with v7.0.0, but not with v6.20.

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