Skip to content

Commit

Permalink
Fix ansible major version extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
reimarstier committed Oct 25, 2024
1 parent 71150ee commit 727dd89
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 727dd89

Please sign in to comment.