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

[google|compute] Fix metadata bug.

Works for when you have metadata, but no sshKeys metadata.
This commit is contained in:
Nat Welch 2013-10-04 15:06:42 -07:00
parent b2e64ed5c5
commit c258dee6ec

View file

@ -74,6 +74,10 @@ module Fog
# You can have multiple SSH keys, seperated by newlines.
# https://developers.google.com/compute/docs/console?hl=en#sshkeys
if !self.metadata["sshKeys"]
self.metadata["sshKeys"] = ""
end
if !self.metadata["sshKeys"].empty?
self.metadata["sshKeys"] += "\n"
end