Updating winrm_info_invalid to use start_with instead of match

This commit is contained in:
Bryce Shurts 2017-10-05 10:28:10 -05:00
parent 0eaf691ea0
commit ba3c26b211
1 changed files with 1 additions and 1 deletions

View File

@ -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