From 3da5928240d242cdf649645eaf2259c4248dcf81 Mon Sep 17 00:00:00 2001 From: Zita Nemeckova Date: Mon, 9 Sep 2019 14:50:49 +0200 Subject: [PATCH] Use kind_of? instead of String comparison This way it catches ManageIQ::Providers::Openstack::StorageManager::CinderManager and ManageIQ::Providers::StorageManager::CinderManager. Not just the later. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650082 --- app/helpers/ems_storage_helper/textual_summary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/ems_storage_helper/textual_summary.rb b/app/helpers/ems_storage_helper/textual_summary.rb index cf07bef5fa9..f186b38c701 100644 --- a/app/helpers/ems_storage_helper/textual_summary.rb +++ b/app/helpers/ems_storage_helper/textual_summary.rb @@ -15,7 +15,7 @@ def textual_group_relationships parent_ems_cloud cloud_volumes cloud_volume_snapshots cloud_volume_backups cloud_object_store_containers custom_button_events ] - relationships.push(:cloud_volume_types) if @record.type.include?("ManageIQ::Providers::StorageManager::CinderManager") + relationships.push(:cloud_volume_types) if @record.kind_of?(ManageIQ::Providers::StorageManager::CinderManager) TextualGroup.new(_("Relationships"), relationships) end