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

Public key results are cached, avoid a bug by using that cache

This commit is contained in:
bigfleet 2011-03-27 03:17:52 +08:00 committed by Wesley Beary
parent b0814e760f
commit 295b5300e5

View file

@ -89,7 +89,7 @@ module Fog
if identity.nil? # new record
raise(ArgumentError, "password or public_key is required for this operation") if !password && !public_key
options['ssh_public_key'] = public_key if @public_key
options['ssh_public_key'] = public_key if public_key
options['password'] = password if @password
end