Skip to content

Commit

Permalink
SCVMM - DB error VM with multiple VHDs on volume
Browse files Browse the repository at this point in the history
Make sure the VM's storages hash does not contain duplicates.

https://bugzilla.redhat.com/show_bug.cgi?id=1173251
  • Loading branch information
Bronagh Sorota committed Dec 17, 2014
1 parent abac2ce commit a2b4c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmdb/app/models/ems_refresh/parsers/scvmm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def process_iso_image(vm)
def process_vm_storages(properties)
properties[:VirtualHardDisks].collect do |vhd|
@data_index.fetch_path(:storages, vhd[:Props][:HostVolumeId])
end.compact
end.compact.uniq
end

def process_vm_storage(vmcpath, host)
Expand Down

0 comments on commit a2b4c37

Please sign in to comment.