core: strip newlines off of IDs [GH-2024]

This commit is contained in:
Mitchell Hashimoto 2013-08-09 11:42:18 -07:00
parent 7c9219fc18
commit 471dc2dc7d
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ IMPROVEMENTS:
BUG FIXES:
- core: strip newlines off of ID file values [GH-2024]
- guests/debian: Force bring up eth0. Fixes hangs on setting hostname.
[GH-2026]
- hosts/fedora: properly detect later CentOS versions. [GH-2008]

View File

@ -108,7 +108,7 @@ module Vagrant
# Read the id file from the data directory if it exists as the
# ID for the pre-existing physical representation of this machine.
id_file = @data_dir.join("id")
@id = id_file.read if id_file.file?
@id = id_file.read.chomp if id_file.file?
end
# Initializes the provider last so that it has access to all the