plugins/provisioners/ansible/provisioner/base.rb in vagrant-unbundled-2.2.16.0 vs plugins/provisioners/ansible/provisioner/base.rb in vagrant-unbundled-2.2.18.0

- old
+ new

@@ -386,11 +386,12 @@ if !@gathered_version_stdout.empty? first_line = @gathered_version_stdout.lines[0] ansible_version_pattern = first_line.match(/(^ansible\s+)(.+)$/) if ansible_version_pattern _, @gathered_version, _ = ansible_version_pattern.captures + @gathered_version.strip! 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 end