From f3d600345a9c0ba50265251c736bd2268d638280 Mon Sep 17 00:00:00 2001 From: Tzu-Mainn Chen Date: Mon, 31 Jul 2017 15:50:22 +0200 Subject: [PATCH] Update provision requirements check to allow exact matches https://bugzilla.redhat.com/show_bug.cgi?id=1472420 --- .../providers/openstack/cloud_manager/provision_workflow.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/manageiq/providers/openstack/cloud_manager/provision_workflow.rb b/app/models/manageiq/providers/openstack/cloud_manager/provision_workflow.rb index 4de03225c..4a4b01709 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/provision_workflow.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/provision_workflow.rb @@ -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