Skip to content

Commit

Permalink
FIX: ensure grep returns no error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays authored Jun 12, 2024
1 parent 80a3fb1 commit c7cff52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
- service_configuration.command | select('match', '--validators-graffiti-client-append-format') | length == 0

0 comments on commit c7cff52

Please sign in to comment.