mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-09 08:42:18 -04:00
detects new versions of ansible-4.0.0+
Ansible has switched dependency between version 3.4.0 (ansible-base) and 4.0.0 (ansible-core), which now outputs new version scheme of "ansible [core 2.11.0]" instead of "ansible 2.10.9". This fix keeps old and new version detection working.
This commit is contained in:
parent
cf73ff31e2
commit
89c071d374
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue