Skip to content

Commit

Permalink
Merge pull request ManageIQ#72 from tzumainn/provision-check-update
Browse files Browse the repository at this point in the history
Update provision requirements check to allow exact matches
  • Loading branch information
aufi authored Aug 14, 2017
2 parents 752420b + f3d6003 commit 48424c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def allowed_instance_types(_options = {})
minimum_disk_required = [source.hardware.size_on_disk.to_i, source.hardware.disk_size_minimum.to_i].max
minimum_memory_required = source.hardware.memory_mb_minimum.to_i * 1.megabyte
flavors.each_with_object({}) do |flavor, h|
next if flavor.root_disk_size <= minimum_disk_required
next if flavor.memory <= minimum_memory_required
next if flavor.root_disk_size < minimum_disk_required
next if flavor.memory < minimum_memory_required
h[flavor.id] = display_name_for_name_description(flavor)
end
end
Expand Down

0 comments on commit 48424c9

Please sign in to comment.