mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add back some attributes.
This commit is contained in:
parent
687cdfd6e2
commit
718dcb9c17
1 changed files with 2 additions and 2 deletions
|
@ -30,12 +30,12 @@ module Fog
|
|||
else
|
||||
connection.create_key_pair(name).body['keypair']
|
||||
end
|
||||
new_attributes = data.reject {|key,value| !['fingerprint', 'public_key', 'name'].include?(key)}
|
||||
new_attributes = data.reject {|key,value| !['fingerprint', 'public_key', 'name', 'private_key', 'user_id'].include?(key)}
|
||||
merge_attributes(new_attributes)
|
||||
true
|
||||
end
|
||||
|
||||
def write(path="#{ENV['HOME']}/.ssh/fog_#{Fog.credential.to_s}_#{name}.pem")
|
||||
def write(path="#{ENV['HOME']}/.ssh/hp_#{Fog.credential.to_s}_#{name}.pem")
|
||||
|
||||
if writable?
|
||||
split_private_key = private_key.split(/\n/)
|
||||
|
|
Loading…
Reference in a new issue