Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output constant must match the constantized class name
Constantize can demodulize to an incorrect class, so we should skip any class names that don't constantize to the expected class. In this example, if you do the following in rails console, you'll get the following: Autoload the base manager eventcatcher: ManageIQ::Providers::BaseManager::EventCatcher Try to constantize a non existing event catcher in a valid provider namespace: "ManageIQ::Providers::Foreman::ProvisioningManager::EventCatcher".constantize => ManageIQ::Providers::BaseManager::EventCatcher Seen in the logs for https://bugzilla.redhat.com/show_bug.cgi?id=1759711
- Loading branch information