Skip to content

Commit b357829

Browse files
committed
Fix double digits ansible version match
1 parent 9df95a2 commit b357829

File tree

1 file changed

+1
-1
lines changed
  • plugins/provisioners/ansible/provisioner

1 file changed

+1
-1
lines changed

plugins/provisioners/ansible/provisioner/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def set_gathered_ansible_version(stdout_output)
393393
_, @gathered_version, _ = ansible_version_pattern.captures
394394
@gathered_version.strip!
395395
if @gathered_version
396-
@gathered_version_major = @gathered_version.match(/(\d)\..+$/).captures[0].to_i
396+
@gathered_version_major = @gathered_version.match(/(\d+)\..+$/).captures[0].to_i
397397
end
398398
end
399399
end

0 commit comments

Comments
 (0)