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:
parent
65908f3038
commit
a23d615ad5
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue