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.
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.