1
0
Fork 0
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:
Eugene Howe 2012-05-02 08:24:17 -04:00
parent 9229ec04f8
commit 0f78e40749

View file

@ -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