Skip to content

Commit

Permalink
[rails6][CloudManager] Use .module_parent
Browse files Browse the repository at this point in the history
.parent is deprecated in Rails 6, so use it's replacement .module_parent
  • Loading branch information
NickLaMuro committed Nov 5, 2020
1 parent cb5497b commit 2b20c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/manageiq/providers/openstack/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class ManageIQ::Providers::Openstack::CloudManager < ManageIQ::Providers::CloudM
supports :provisioning
supports :cloud_tenants
supports :cloud_tenant_mapping do
if defined?(self.class.parent::CloudManager::CloudTenant) && !tenant_mapping_enabled?
if defined?(self.class.module_parent::CloudManager::CloudTenant) && !tenant_mapping_enabled?
unsupported_reason_add(:cloud_tenant_mapping, _("Tenant mapping is disabled on the Provider"))
elsif !defined?(self.class.parent::CloudManager::CloudTenant)
elsif !defined?(self.class.module_parent::CloudManager::CloudTenant)
unsupported_reason_add(:cloud_tenant_mapping, _("Tenant mapping is supported only when CloudTenant exists "\
"on the CloudManager"))
end
Expand Down

0 comments on commit 2b20c81

Please sign in to comment.