From 727dd8973b99c1b8b70a0fe9698d602ff7ece0fb Mon Sep 17 00:00:00 2001 From: Reimar Stier Date: Fri, 25 Oct 2024 17:51:04 +0200 Subject: [PATCH] Fix ansible major version extraction --- 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