mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
metadata could be nil
This commit is contained in:
parent
1f46fa4059
commit
2c77de3d3e
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ module Fog
|
|||
requires :machine_type
|
||||
requires :zone_name
|
||||
|
||||
if metadata.nil?
|
||||
metadata = {}
|
||||
end
|
||||
|
||||
metadata.merge!({
|
||||
"sshKeys" => "#{username}:#{File.read(public_key_path).strip}"
|
||||
}) if :public_key_path
|
||||
|
|
Loading…
Add table
Reference in a new issue