From 67c14c48894f3c40d42754b21c016daedcdd6321 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 5 Jul 2015 17:10:10 -0700 Subject: [PATCH] guests/openbsd: add newline after insert_public_key [GH-5881] --- CHANGELOG.md | 1 + plugins/guests/openbsd/cap/insert_public_key.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d67fa93e1..1b833b8a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ BUG FIXES: - guests/fedora: do not use biosdevname if it is not installed [GH-5707] - guests/freebsd: provide an argument to the backup file [GH-5516, GH-5517] - guests/funtoo: fix incorrect path in configure networks [GH-4812] + - guests/openbsd: output newline after inserted public key [GH-5881] - guests/tinycore: fix change hostname functionality [GH-5623] - guests/windows: Create rsync folder prior to rsync-ing. [GH-5282] - guests/windows: Changing hostname requires reboot again since diff --git a/plugins/guests/openbsd/cap/insert_public_key.rb b/plugins/guests/openbsd/cap/insert_public_key.rb index ca837e23e..42437283c 100644 --- a/plugins/guests/openbsd/cap/insert_public_key.rb +++ b/plugins/guests/openbsd/cap/insert_public_key.rb @@ -11,7 +11,7 @@ module VagrantPlugins machine.communicate.tap do |comm| comm.execute("mkdir -p ~/.ssh") comm.execute("chmod 0700 ~/.ssh") - comm.execute("printf '#{contents}' >> ~/.ssh/authorized_keys") + comm.execute("printf '#{contents}\\n' >> ~/.ssh/authorized_keys") comm.execute("chmod 0600 ~/.ssh/authorized_keys") end end