Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidius-b committed Mar 15, 2024
1 parent 9d7be15 commit ea2aadd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tasks/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
- name: Check for incompatible solr_jetty_host
fail:
msg: 'You can set solr_jetty_host other than 127.0.0.1 only when the Solr version is 9.3.0 or higher'
when: solr_jetty_host != '127.0.0.1' and solr_version is version('9.3.0' ,'<')
when: solr_jetty_host != '127.0.0.1' and solr_version is version('9.3.0' ,'<')

Check failure on line 6 in tasks/checks.yml

View workflow job for this annotation

GitHub Actions / Lint

6:3 [new-line-at-end-of-file] no new line character at the end of file

Check failure on line 6 in tasks/checks.yml

View workflow job for this annotation

GitHub Actions / Lint

6:1 [trailing-spaces] trailing spaces
3 changes: 2 additions & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@
service:
name: solr
state: restarted
when: solr_config.changed
when: solr_config.changed

Check failure on line 54 in tasks/configure.yml

View workflow job for this annotation

GitHub Actions / Lint

54:3 [new-line-at-end-of-file] no new line character at the end of file

Check failure on line 54 in tasks/configure.yml

View workflow job for this annotation

GitHub Actions / Lint

54:1 [trailing-spaces] trailing spaces
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@

# Create cores, if any are configured.
- include_tasks: cores.yml
when:
- solr_cores
when:
- solr_cores
- solr_version.split('.')[0] >= '5'
- solr_jetty_host == '127.0.0.1'

# Create cores also when solr is listening on custom network interface. Just for solr 9.3.0 and higher.
- include_tasks: cores-post93.yml
when:
- solr_cores
when:
- solr_cores
- solr_version is version('9.3.0' ,'>=')
- solr_jetty_host != '127.0.0.1'

Expand Down

0 comments on commit ea2aadd

Please sign in to comment.