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

Fix logic bug in data structure creation

Don't attempt to merge `attributes` if they aren't a hash.
This commit is contained in:
Joshua Schairbaum 2014-01-07 21:02:48 -06:00
parent c55f5e2158
commit 6974ce509e

View file

@ -26,7 +26,7 @@ module Fog
key_data.merge!("public_key" => attributes)
end
key_data.merge!(attributes) unless attributes.nil?
key_data.merge!(attributes) if attributes.is_a?(Hash)
data = {
'keypair' => key_data