Skip to content

Commit b54205c

Browse files
Merge pull request #871 from splunk/pre-install-fix
skip pre-install check for version-less packages
2 parents 0e8d5ed + debcab7 commit b54205c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

roles/splunk_common/tasks/get_facts.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@
7777

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

8583
# We are upgrading if it is not a fresh installation and the current version is different from the target version,
8684
# and allowing upgrades between new and old hashes of the same version.

0 commit comments

Comments
 (0)