From 273d623b668897abb4a7bcda56ed1d986da2c972 Mon Sep 17 00:00:00 2001 From: Jay Carman Date: Fri, 1 Sep 2023 08:43:43 -0500 Subject: [PATCH] Include flavor ID override for service requests If a service request includes a flavor override it needs to be passed to the template *_for_request calculation methods. --- .../CommonMethods/QuotaMethods.class/__methods__/requested.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/automate/ManageIQ/System/CommonMethods/QuotaMethods.class/__methods__/requested.rb b/content/automate/ManageIQ/System/CommonMethods/QuotaMethods.class/__methods__/requested.rb index 33c83ff23..a7a81ac60 100644 --- a/content/automate/ManageIQ/System/CommonMethods/QuotaMethods.class/__methods__/requested.rb +++ b/content/automate/ManageIQ/System/CommonMethods/QuotaMethods.class/__methods__/requested.rb @@ -292,14 +292,14 @@ def cloud_volume_storage(args_hash) def cloud_number_of_cpus(args_hash) default_option( - args_hash[:resource].source.number_of_cpus_for_request(args_hash[:resource]), + args_hash[:resource].source.number_of_cpus_for_request(args_hash[:resource], @flavor_id), args_hash[:options_array] ) end def cloud_vm_memory(args_hash) default_option( - args_hash[:resource].source.memory_for_request(args_hash[:resource]), + args_hash[:resource].source.memory_for_request(args_hash[:resource], @flavor_id), args_hash[:options_array] ) end