Skip to content

Commit

Permalink
Use kind_of? instead of String comparison
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ZitaNemeckova committed Sep 9, 2019
1 parent 6c58f52 commit 3da5928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/ems_storage_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3da5928

Please sign in to comment.