Skip to content

Commit

Permalink
returns if no disks are present on the VM
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronagh Sorota committed Jul 7, 2015
1 parent 3e90bae commit bf119d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/ems_refresh/parsers/scvmm.rb
Expand Up @@ -434,6 +434,8 @@ def process_iso_image(vm)
end

def process_vm_storages(properties)
return if properties[:VirtualHardDisks].nil?

properties[:VirtualHardDisks].collect do |vhd|
@data_index.fetch_path(:storages, vhd[:Props][:HostVolumeId])
end.compact.uniq
Expand Down

0 comments on commit bf119d0

Please sign in to comment.