ManageIQ/manageiq-providers-ovirt

View on GitHub
app/models/manageiq/providers/ovirt/inventory/collector/target_collection.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
89%

Use filter_map instead.
Open

      references(:hosts).map do |ems_ref|
        connection.system_service.hosts_service.host_service(uuid_from_ems_ref(ems_ref)).get
      rescue OvirtSDK4::Error # when 404
        nil
      end.compact

Use filter_map instead.
Open

      vm.storages.collect(&:ems_ref).compact.each { |ems_ref| add_target!(:storagedomains, ems_ref) } unless vm.storages.nil?

There are no issues that match your filters.

Category
Status