From 4b23ed636ba58b53143abae95de37fb8eb2896cb Mon Sep 17 00:00:00 2001 From: geemus Date: Fri, 8 Jun 2012 17:16:52 -0500 Subject: [PATCH] [ecloud|compute] fix optional params for validate_data closes #969 --- lib/fog/ecloud/compute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/ecloud/compute.rb b/lib/fog/ecloud/compute.rb index 61eb136f5..5fc1518a1 100644 --- a/lib/fog/ecloud/compute.rb +++ b/lib/fog/ecloud/compute.rb @@ -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