lib/MiqVm/MiqRhevmVm.rb in manageiq-smartstate-0.3.10 vs lib/MiqVm/MiqRhevmVm.rb in manageiq-smartstate-0.4.0
- old
+ new
@@ -40,10 +40,10 @@
# Collect disk information
disks = @rhevm.collect_vm_disks(@rhevmVm)
disks.each_with_index do |disk, idx|
$log.debug "MiqRhevmVm#getCfg: disk = #{disk.inspect}"
- storage_domain = disk.storage_domains&.first
+ storage_domain = disk.storage_domains.first
if storage_domain.nil?
$log.info("Disk <#{disk.name}> is skipped due to unassigned storage domain")
next
end
storage_id = storage_domain.id