From ba3c26b21135b8461bac99d1731996773ba64d7c Mon Sep 17 00:00:00 2001 From: Bryce Shurts Date: Thu, 5 Oct 2017 10:28:10 -0500 Subject: [PATCH] Updating winrm_info_invalid to use start_with instead of match --- plugins/communicators/winrm/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/communicators/winrm/helper.rb b/plugins/communicators/winrm/helper.rb index 03aff088c..dd266969e 100644 --- a/plugins/communicators/winrm/helper.rb +++ b/plugins/communicators/winrm/helper.rb @@ -38,7 +38,7 @@ module VagrantPlugins end def self.winrm_info_invalid?(ssh_info) - invalid = (!ssh_info || ssh_info[:host].to_s.empty? || ssh_info[:host].to_s.match(/^169.254/)) + invalid = (!ssh_info || ssh_info[:host].to_s.empty? || ssh_info[:host].start_with?("169.254")) return invalid end