Skip to content

Commit

Permalink
Merge pull request #871 from splunk/pre-install-fix
Browse files Browse the repository at this point in the history
skip pre-install check for version-less packages
  • Loading branch information
jmeixensperger authored Jan 23, 2025
2 parents 0e8d5ed + debcab7 commit b54205c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions roles/splunk_common/tasks/get_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@

- name: "Determine if Splunk has preinstall checks"
set_fact:
splunk_preinstall: "true"
vars:
target_version: "{{ splunk_target_version | first }}"
when: "splunk_target_version is defined and target_version is version('9.4.0', '>=')"
splunk_preinstall: "{{ splunk_target_version | first is version('9.4.0', '>=') }}"
when: splunk_target_version is defined and splunk_target_version | length > 0

# 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.
Expand Down

0 comments on commit b54205c

Please sign in to comment.