Skip to content

Commit

Permalink
Set the location property of managed disks to ensure disk saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronagh Sorota committed Oct 20, 2017
1 parent 2c350d2 commit ff7cfc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def populate_hardware_hash_with_disks(hardware_disks_array, instance)
data_disks.each do |disk|
disk_size = disk.respond_to?(:disk_size_gb) ? disk.disk_size_gb * 1.gigabyte : 0
disk_name = disk.name
disk_location = disk.try(:vhd).try(:uri)
disk_location = disk.try(:vhd).try(:uri) || disk.try(:managed_disk).try(:id)

add_instance_disk(hardware_disks_array, disk_size, disk_name, disk_location)
end
Expand Down

0 comments on commit ff7cfc3

Please sign in to comment.