guests/linux: fix exception when printf is empty [GH-5846]

This commit is contained in:
Mitchell Hashimoto 2015-07-05 17:14:48 -07:00
parent 67c14c4889
commit 262b50bc02
2 changed files with 6 additions and 2 deletions

View File

@ -61,6 +61,8 @@ BUG FIXES:
- guests/fedora: do not use biosdevname if it is not installed [GH-5707] - 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/freebsd: provide an argument to the backup file [GH-5516, GH-5517]
- guests/funtoo: fix incorrect path in configure networks [GH-4812] - guests/funtoo: fix incorrect path in configure networks [GH-4812]
- guests/linux: fix edge case exception where no home directory
is available on guest [GH-5846]
- guests/openbsd: output newline after inserted public key [GH-5881] - guests/openbsd: output newline after inserted public key [GH-5881]
- guests/tinycore: fix change hostname functionality [GH-5623] - guests/tinycore: fix change hostname functionality [GH-5623]
- guests/windows: Create rsync folder prior to rsync-ing. [GH-5282] - guests/windows: Create rsync folder prior to rsync-ing. [GH-5282]

View File

@ -11,8 +11,10 @@ module VagrantPlugins
end end
end end
# The last line is the path we care about if real_path
real_path = real_path.split("\n").last.chomp # The last line is the path we care about
real_path = real_path.split("\n").last.chomp
end
if !real_path if !real_path
# If no real guest path was detected, this is really strange # If no real guest path was detected, this is really strange