voxpupuli / puppet-yum

Puppet module for Yum
https://forge.puppet.com/puppet/yum
MIT License
16 stars 99 forks source link

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

Open redst011 opened 1 year ago

redst011 commented 1 year ago

Affected Puppet, Ruby, OS and module versions/distributions

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.