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:
parent
b2e64ed5c5
commit
c258dee6ec
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue