Permalink
Browse files

[ecloud|compute] fix optional params for validate_data

closes #969
  • Loading branch information...
1 parent 5d4df4d commit 4b23ed636ba58b53143abae95de37fb8eb2896cb @geemus geemus committed Jun 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fog/ecloud/compute.rb
@@ -308,7 +308,7 @@ def xmlns
"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

0 comments on commit 4b23ed6

Please sign in to comment.