Updating winrm_info_invalid to use start_with instead of match
This commit is contained in:
parent
0eaf691ea0
commit
ba3c26b211
|
@ -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 New Issue