Skip to content

Commit

Permalink
Merge pull request #13493 from robinmulder/fix-ansible-version-match
Browse files Browse the repository at this point in the history
Fix double digits Ansible version match
  • Loading branch information
chrisroberts authored Oct 30, 2024
2 parents a82b64d + b357829 commit ffe6457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/provisioners/ansible/provisioner/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def set_gathered_ansible_version(stdout_output)
_, @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
Expand Down

0 comments on commit ffe6457

Please sign in to comment.