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

Remove some attributes from object.

This commit is contained in:
Rupak Ganguly 2011-12-13 14:09:06 -05:00
parent b6e70fab27
commit a799dcf700

View file

@ -30,7 +30,7 @@ module Fog
else
connection.create_key_pair(name).body['keypair']
end
new_attributes = data.reject {|key,value| !['user_id', 'fingerprint', 'public_key', 'private_key', 'name'].include?(key)}
new_attributes = data.reject {|key,value| !['fingerprint', 'public_key', 'name'].include?(key)}
merge_attributes(new_attributes)
true
end