From b357829dcc7ae5336b51413b29014d1afd40f9cb Mon Sep 17 00:00:00 2001 From: Robin Mulder Date: Mon, 26 Aug 2024 16:20:30 +0200 Subject: [PATCH] Fix double digits ansible version match --- plugins/provisioners/ansible/provisioner/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner/base.rb b/plugins/provisioners/ansible/provisioner/base.rb index f0a79f53742..5679ef9e9c7 100644 --- a/plugins/provisioners/ansible/provisioner/base.rb +++ b/plugins/provisioners/ansible/provisioner/base.rb @@ -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