From dc6ae4178f0725619edc5bc11aee65319542c3f8 Mon Sep 17 00:00:00 2001 From: Cosmin <75861657+cosmind-rusu@users.noreply.github.com> Date: Sat, 25 Jan 2025 17:24:19 +0100 Subject: [PATCH] NoMethodError: undefined method exists? | Vagrant vagrant syntax improvements and tweaks --- rancher/vagrant/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rancher/vagrant/Vagrantfile b/rancher/vagrant/Vagrantfile index e8404b71..bebd173e 100644 --- a/rancher/vagrant/Vagrantfile +++ b/rancher/vagrant/Vagrantfile @@ -4,7 +4,7 @@ require_relative 'vagrant_rancheros_guest_plugin.rb' require 'ipaddr' require 'yaml' -if File.exists?(File.join(File.dirname(__FILE__), "local_config.yaml")) then +if File.exist?(File.join(File.dirname(__FILE__), "local_config.yaml")) then puts "Using local configuration file" x = YAML.load_file(File.join(File.dirname(__FILE__), "local_config.yaml")) else