Merge pull request #7456 from jonnywilliamson/patch-1
Append newline to each key added
This commit is contained in:
commit
23b34bb6c0
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue