mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
small fix in metadata for servers
This commit is contained in:
parent
80c1c5f2ed
commit
d1cedb9ca2
1 changed files with 1 additions and 9 deletions
|
@ -69,17 +69,9 @@ module Fog
|
|||
self.metadata = {}
|
||||
end
|
||||
|
||||
self.metadata.merge!({
|
||||
"sshKeys" => "#{username}:#{File.read(public_key_path).strip}"
|
||||
}) if :public_key_path
|
||||
|
||||
if self.metadata.nil?
|
||||
self.metadata = {}
|
||||
end
|
||||
|
||||
self.metadata.merge!({
|
||||
"sshKeys" => "#{username}:#{File.read(public_key_path).strip}"
|
||||
}) if :public_key_path
|
||||
}) if public_key_path
|
||||
|
||||
options = {
|
||||
'image' => image_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue