Merge pull request #7456 from jonnywilliamson/patch-1

Append newline to each key added
This commit is contained in:
Seth Vargo 2016-06-16 21:28:33 +02:00 committed by GitHub
commit 23b34bb6c0
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module VagrantPlugins
class InsertPublicKey
def self.insert_public_key(machine, contents)
comm = machine.communicate
contents = contents.chomp
contents = contents.chomp << "\n"
remote_path = "/tmp/vagrant-authorized-keys-#{Time.now.to_i}"
Tempfile.open("vagrant-linux-insert-public-key") do |f|