From f425a7988fd09536f95c0eaa54cdc9c1c6cee425 Mon Sep 17 00:00:00 2001 From: Martin Fanning Date: Tue, 19 Nov 2024 14:01:47 +0000 Subject: [PATCH] Further OHS Updates to base install testing Further update to main.yaml to ensure when patches in undefined the check is accurate for > 0 --- galaxy.yml | 2 +- roles/ohs/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index 47c56a5..141d55d 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -11,7 +11,7 @@ name: spm_middleware # The version of the collection. Must be compatible with semantic versioning # Please note. version also exists in /github/workflows/release.yml and will need to be update also -version: 1.7.5 +version: 1.7.6 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/roles/ohs/tasks/main.yml b/roles/ohs/tasks/main.yml index a2b4a8b..81a1a19 100644 --- a/roles/ohs/tasks/main.yml +++ b/roles/ohs/tasks/main.yml @@ -43,7 +43,7 @@ - name: Patch OHS include_tasks: "patch.yml" when: - - patches | length > 0 + - patches | default([]) | length > 0 - ohs_version is defined - ohs_version_status.results | selectattr('rc', 'greaterthan', 0) | list | count > 0