Skip to content

Commit

Permalink
Merge pull request #6174 from ZitaNemeckova/kind_oif
Browse files Browse the repository at this point in the history
Use kind_of? instead of String comparison
  • Loading branch information
mzazrivec authored Sep 10, 2019
2 parents 0779432 + 3da5928 commit 4d1363a
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 4d1363a

Please sign in to comment.