ManageIQ / manageiq-providers-kubevirt

ManageIQ plugin for the Kubevirt provider.
https://kubevirt.io/
Apache License 2.0
4 stars 29 forks source link

Update safe_load calls to work with psych 3/4 #226

Closed jrafanie closed 11 months ago

jrafanie commented 11 months ago

Part of https://github.com/ManageIQ/manageiq/issues/22696

Keep compatibility with psych 3.1+ since permitted_classes and aliases were added as keyword arguments to safe_load.

Note, psych 4 changed the interface to drop support with positional arguments for the permitted_classes. Now, we must explicitly specify them using kwargs.

miq-bot commented 11 months ago

Checked commit https://github.com/jrafanie/manageiq-providers-kubevirt/commit/a2e3bc4e70d6fba1ff1119d272283965c9a064a5 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint 1 file checked, 0 offenses detected Everything looks fine. :cake: