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

[google|compute] Fix some bugs with using create without bootstrap.

This commit is contained in:
Nat Welch 2013-07-09 10:24:35 -07:00
parent 65908f3038
commit a23d615ad5

View file

@ -64,20 +64,20 @@ module Fog
requires :machine_type
requires :zone_name
if metadata.nil?
metadata = {}
if self.metadata.nil?
self.metadata = {}
end
metadata.merge!({
self.metadata.merge!({
"sshKeys" => "#{username}:#{File.read(public_key_path).strip}"
}) if :public_key_path
data = service.insert_server(
name,
image_name,
zone_name,
machine_type,
metadata)
self.name,
self.image_name,
self.zone_name,
self.machine_type,
self.metadata)
end
end