Skip to content

Commit

Permalink
Include flavor ID override for service requests
Browse files Browse the repository at this point in the history
If a service request includes a flavor override it needs to be passed to
the template *_for_request calculation methods.
  • Loading branch information
jaywcarman committed Oct 18, 2023
1 parent c5df00d commit 2b04ce0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,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
Expand Down

0 comments on commit 2b04ce0

Please sign in to comment.