From c7cff523ee32cef22e109291090a29cdaff0e6b2 Mon Sep 17 00:00:00 2001 From: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:50:40 +0200 Subject: [PATCH] FIX: ensure grep returns no error codes --- .../roles/update-changes/tasks/2.1.5/charon_teku_changes.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls/roles/update-changes/tasks/2.1.5/charon_teku_changes.yaml b/controls/roles/update-changes/tasks/2.1.5/charon_teku_changes.yaml index 845db5559..dab77af38 100644 --- a/controls/roles/update-changes/tasks/2.1.5/charon_teku_changes.yaml +++ b/controls/roles/update-changes/tasks/2.1.5/charon_teku_changes.yaml @@ -10,7 +10,7 @@ service_configuration_text: "{{ service_configuration_raw['content'] | b64decode }}" - name: Check if service_configuration.id is in any of the filtered_files - shell: "grep -lq '{{ service_configuration.id }}' {{ item }}" + shell: "grep -lq '{{ service_configuration.id }}' {{ item }} || true" loop: "{{ filtered_files }}" ignore_errors: true register: grep_result @@ -28,4 +28,4 @@ when: - grep_result.results | selectattr('rc', 'equalto', 0) | list | length > 0 - service_configuration.service == "TekuBeaconService" - - service_configuration.command | select('match', '--validators-graffiti-client-append-format') | length == 0 \ No newline at end of file + - service_configuration.command | select('match', '--validators-graffiti-client-append-format') | length == 0