Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Select resources when there are nil in MetricRollups records
In this PR ManageIQ#11648 we introduced selecting rates according to first MetricRollup record of group. We can do it because group of these records belong to one resource. Selection is based on MetricRollup#parent_host or parent_ems_cluster or parent_storage or parent_ems but sometimes this fields in MetricRollup are nil and it produces empty cells on the report - it is because proper rate was not selected. Fix provides that we are selecting parents from the resource direcly when there are not exists in MetricRollup.
- Loading branch information