1
0
Fork 0
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:
Nat Welch 2013-06-26 23:03:59 -07:00
parent 1f46fa4059
commit 2c77de3d3e

View file

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