mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Made computePool an optional parameter, specs now pass without issue
This commit is contained in:
parent
9229ec04f8
commit
0f78e40749
1 changed files with 2 additions and 1 deletions
|
@ -5,10 +5,11 @@ module Fog
|
|||
private
|
||||
|
||||
def validate_instantiate_vapp_template_options(catalog_item_uri, options)
|
||||
valid_opts = [:name, :vdc_uri, :network_uri, :cpus, :memory, :row, :group, :computePool]
|
||||
valid_opts = [:name, :vdc_uri, :network_uri, :cpus, :memory, :row, :group]
|
||||
unless valid_opts.all? { |opt| options.has_key?(opt) }
|
||||
raise ArgumentError.new("Required data missing: #{(valid_opts - options.keys).map(&:inspect).join(", ")}")
|
||||
end
|
||||
valid_opts.push(:computePool)
|
||||
|
||||
# Figure out the template_uri
|
||||
catalog_item = get_catalog_item( catalog_item_uri ).body
|
||||
|
|
Loading…
Reference in a new issue