Skip to content

Puppet (err): Could not prefetch yaml_setting provider 'mapped': uninitialized constant Fixnum due to Fixnum was removed in Ruby 2.4 #18

@vijayalp

Description

@vijayalp

Getting below error when puppet-agent 8.8.1 have ruby >=3 version.
2025-02-14 15:59:48 +0530 Puppet (debug): Prefetching mapped resources for yaml_setting
2025-02-14 15:59:48 +0530 Puppet (err): Could not prefetch yaml_setting provider 'mapped': uninitialized constant Fixnum
/opt/puppetlabs/puppet/modules/yamlfile/lib/puppet/provider/yaml_setting/mapped.rb:106:in `block in parse_file'

To support ruby >2.4 version, need to update Fixnum with Integer.
Therefore, file yamlfile/lib/puppet/provider/yaml_setting/mapped.rb when updated with 'Integer' at line 106 issue got resolved.
Before:
When Fixnum
After :
when Integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions