lib/vagrant/config/ssh.rb in vagrant-1.0.1 vs lib/vagrant/config/ssh.rb in vagrant-1.0.2
- old
+ new
@@ -16,10 +16,10 @@
def validate(env, errors)
[:username, :host, :max_tries, :timeout].each do |field|
errors.add(I18n.t("vagrant.config.common.error_empty", :field => field)) if !instance_variable_get("@#{field}".to_sym)
end
- if private_key_path && !File.file?(private_key_path)
+ if private_key_path && !File.file?(File.expand_path(private_key_path, env.root_path))
errors.add(I18n.t("vagrant.config.ssh.private_key_missing", :path => private_key_path))
end
end
end
end