mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Updating winrm_info_invalid to use start_with instead of match
This commit is contained in:
parent
0eaf691ea0
commit
ba3c26b211
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue