waveclaw / puppet-subscription_manager

Handle Client Registration to RedHat Satellite 6 or Katello
https://rhn.redhat.com
Other
6 stars 34 forks source link

Validate method failed for class name: undefined method `match?' #84

Closed surcouf closed 5 years ago

surcouf commented 5 years ago

Hi, Using Puppet 4.10 with Puppetserver 2.7 and subsciption_manager 5.1.1, I'm getting this following error : Error: Failed to apply catalog: Parameter name failed on Rhsm_config[/etc/rhsm/rhsm.conf]: Validate method failed for class name: undefined methodmatch?' for "/etc/rhsm/rhsm.conf":String at /etc/puppetlabs/code/environments/project_rbordet/modules/subscription_manager/manifests/config.pp:57`

Regards,

waveclaw commented 5 years ago

The version of Ruby for Puppet 4.10 doesn't have String.match?. This is why I deprecated support in the 4.x series and dropped in 5.0.