1
0
Fork 0
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:
jordangbull 2013-07-11 17:14:18 -07:00
parent 80c1c5f2ed
commit d1cedb9ca2

View file

@ -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,