From b93a0eb9b8f8da6bd9e013d3d7024a93ac2f2063 Mon Sep 17 00:00:00 2001 From: Tod Detre Date: Fri, 8 Mar 2024 11:06:41 -0500 Subject: [PATCH] modify regexp to find target build in new download format --- roles/splunk_common/tasks/get_facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/splunk_common/tasks/get_facts.yml b/roles/splunk_common/tasks/get_facts.yml index bb9b2f84..dd20a87e 100644 --- a/roles/splunk_common/tasks/get_facts.yml +++ b/roles/splunk_common/tasks/get_facts.yml @@ -73,7 +73,7 @@ splunk_current_build_hash: "{{ manifests.files[0].path | regex_search(regexp, '\\3') if (manifests.matched == 1) else '0' }}" splunk_target_build_hash: "{{ splunk.build_location | string | regex_search(regexp, '\\3') | default('0') }}" vars: - regexp: 'splunk\D*?-(\d+\.\d+\.\d+(\.\d+)?)-(.*?)-.*?' + regexp: 'splunk\D*?-(\d+\.\d+\.\d+(\.\d+)?)-(.*?)[-\.].*?' # We are upgrading if it is not a fresh installation and the current version is different from the target version, # and allowing upgrades between new and old hashes of the same version.