lib/MiqVm/MiqRhevmVm.rb in manageiq-smartstate-0.6.0 vs lib/MiqVm/MiqRhevmVm.rb in manageiq-smartstate-0.6.1

- 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