Merge pull request #12391 from yodaaut/fix_ansible_version_detection
detects new versions of ansible-4.0.0+
This commit is contained in:
commit
7033852da5
@ -389,7 +389,7 @@ gathered version stdout version:
|
||||
if ansible_version_pattern
|
||||
_, @gathered_version, _ = ansible_version_pattern.captures
|
||||
if @gathered_version
|
||||
@gathered_version_major = @gathered_version.match(/^(\d)\..+$/).captures[0].to_i
|
||||
@gathered_version_major = @gathered_version.match(/(\d)\..+$/).captures[0].to_i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -325,6 +325,7 @@ VF
|
||||
"2.5.0.0-rc1": VagrantPlugins::Ansible::COMPATIBILITY_MODE_V2_0,
|
||||
"2.x.y.z": VagrantPlugins::Ansible::COMPATIBILITY_MODE_V2_0,
|
||||
"4.3.2.1": VagrantPlugins::Ansible::COMPATIBILITY_MODE_V2_0,
|
||||
"[core 2.11.0]": VagrantPlugins::Ansible::COMPATIBILITY_MODE_V2_0,
|
||||
}
|
||||
valid_versions.each_pair do |ansible_version, mode|
|
||||
describe "and ansible version #{ansible_version}" do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user