From f2e50e00169b5fc0a67e76d2aea7894a3d77fe9b Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Mon, 9 Oct 2023 21:45:47 -0400 Subject: [PATCH] File.exists --> File.exist File.exists was deprecated in older versions of Ruby. --- 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