-
Notifications
You must be signed in to change notification settings - Fork 104
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
`safe_load': wrong number of arguments (given 4, expected 1) (ArgumentError) #1143
Comments
Back link for completeness |
https://github.com/puppetlabs/pdk/blob/main/lib/pdk/config/yaml.rb#L16 uses the "positional args" version of the method, which has been removed. This is not a defect in ruby/psych - it's a newer API. In order for pdk to be more compatible with different YAML library versions, check which version is in use: Hope this helps! |
Thanks @antenore for the report and @olleolleolle for the additional info. Have been able to reproduce this on my side too. We are currently working on the next generation of the PDK (see this blog post, which will not carry this issue over. However, we may still be performing a maintenance / bug fix release - we'll try to prioritise resolving this conflict, if we release a new version of the PDK in the near term |
@antenore if you need this right now, you can correct your own install with this patch. |
@binford2k thank you! |
I've installed pdk as a gem, because I don't have better options at the moment.
When the gem psych is installed (v4.0.1) I have the above error, that sounds to me a weird name clashing.
I think the problem is in psych, I'll report the same to them, unfortunately I cannot investigate further, at the moment I've just removed psych.
The full error:
The text was updated successfully, but these errors were encountered: