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:
parent
c55f5e2158
commit
6974ce509e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue