1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ecloud|compute] fix optional params for validate_data

closes #969
This commit is contained in:
geemus 2012-06-08 17:16:52 -05:00
parent 5d4df4d8aa
commit 4b23ed636b

View file

@ -308,7 +308,7 @@ module Fog
"xmlns:xsd" => "http://www.w3.org/2001/XMLSchema" }
end
def validate_data(required_opts = [], options)
def validate_data(required_opts = [], options = {})
unless required_opts.all? { |opt| options.has_key?(opt) }
raise ArgumentError.new("Required data missing: #{(required_opts - options.keys).map(&:inspect).join(", ")}")
end