Skip to content

Commit

Permalink
Merge pull request #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
(cherry picked from commit 48424c966ddbd2e58b536d4fa239a40466e8280f)

https://bugzilla.redhat.com/show_bug.cgi?id=1481449
  • Loading branch information
aufi authored and simaishi committed Aug 14, 2017
1 parent a6b6f14 commit b82ee02
Showing 1 changed file with 2 additions and 2 deletions.
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 b82ee02

Please sign in to comment.