mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
parent
5d4df4d8aa
commit
4b23ed636b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue