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 Sep 1, 2023
1 parent cfca0b6 commit 273d623
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 273d623

Please sign in to comment.