Skip to content

Commit

Permalink
Fix double digits ansible version match
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmulder committed Aug 26, 2024
1 parent 9df95a2 commit b357829
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 b357829

Please sign in to comment.