From cac28c82de618ada43b999f9f0ea4950d9c72c65 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 17 Sep 2013 12:42:57 -0700 Subject: [PATCH] core: Vagrantfile must be file [GH-2216] --- CHANGELOG.md | 2 ++ lib/vagrant/environment.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b7a9d899..c7743e901 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ BUG FIXES: works. [GH-2196] - core: Don't try to be clever about deleting the machine state directory anymore. Manually done in destroy actions. [GH-2201] + - core: Find the root Vagrantfile only if Vagrantfile is a file, not + a directory. [GH-2216] - guests/linux: Try `id -g` in addition to `getent` for mounting VirtualBox shared folders [GH-2197] - hosts/arch: NFS exporting works properly, no exceptions. [GH-2161] diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 927bbece2..677d5c971 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -709,7 +709,7 @@ module Vagrant filenames ||= ["Vagrantfile", "vagrantfile"] filenames.each do |vagrantfile| current_path = search_path.join(vagrantfile) - return current_path if current_path.exist? + return current_path if current_path.file? end nil