diff --git a/lib/vagrant/data_store.rb b/lib/vagrant/data_store.rb index ca85ddb6f..57f81c073 100644 --- a/lib/vagrant/data_store.rb +++ b/lib/vagrant/data_store.rb @@ -19,13 +19,12 @@ module Vagrant @file_path = file_path return if !file_path + raise Errors::DotfileIsDirectory if File.directory?(file_path) File.open(file_path, "r") do |f| merge!(JSON.parse(f.read)) end rescue Errno::ENOENT clear - rescue Errno::EISDIR - raise Errors::DotfileIsDirectory end # Commits any changes to the data to disk. Even if the data