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

stdlib function "has_key" is deprecated since stdlib 4.x.x and removed in 9.x.x #32

Closed
pheeef opened this issue Jan 31, 2024 · 2 comments

Comments

@pheeef
Copy link

pheeef commented Jan 31, 2024

When installing bzed-dehydrated (1.9) together with stdlib >= 9.0.0 you get the following error

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Unknown function: 'has_key'. (file: /etc/puppetlabs/code/environments/production/modules/dehydrated/manifests/init.pp, line: 238, column: 8) on node <FQDN of Puppetserver>

Since the has_key is deprecated it should be replaced with something modern.

puppetlabs/puppetlabs-stdlib#1319

@pheeef
Copy link
Author

pheeef commented Jan 31, 2024

Ok this was apparently fixed in f1d7275 but the release for release tag is still missing.

Workaround is to install the puppet-module from source (g10k syntax)

mod 'dehydrated',
    :git => 'https://github.com/bzed/bzed-dehydrated.git',
    :branch => 'master'

@bzed
Copy link
Owner

bzed commented Jul 1, 2024

Mod updated in forge.

@bzed bzed closed this as completed Jul 1, 2024
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

2 participants