Skip to content

Commit

Permalink
[fix] Fixed task for restarting supervisor services
Browse files Browse the repository at this point in the history
Bug:
The "when" condition defined in "openwisp2_default_supervisor_restart"
was not getting evaluated when the task was getting executed.

Fix:
Wrapped the "when" condition in Jinja delimiters ("{{ }}"), so it is
evaluated at variable assignment.
  • Loading branch information
pandafy authored Oct 18, 2022
1 parent 6a298a1 commit e301eb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ openwisp2_default_supervisor_restart:
- name: celerybeat
when: true
- name: celery_network
when: openwisp2_celery_network
when: "{{ openwisp2_celery_network }}"
- name: celery_firmware_upgrader
when: openwisp2_firmware_upgrader and openwisp2_celery_firmware_upgrader
when: "{{ openwisp2_firmware_upgrader and openwisp2_celery_firmware_upgrader }}"
- name: celery_monitoring
when: openwisp2_monitoring and openwisp2_celery_monitoring
when: "{{ openwisp2_monitoring and openwisp2_celery_monitoring }}"

0 comments on commit e301eb2

Please sign in to comment.