Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rrule fix #586

Merged
merged 12 commits into from
Apr 27, 2023
4 changes: 4 additions & 0 deletions changelogs/fragments/rrule_bugfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- Fixed rrule in schedules to not be mandatory.
...
2 changes: 1 addition & 1 deletion roles/schedules/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: "{{ __controller_schedule_item.name | mandatory }}"
new_name: "{{ __controller_schedule_item.new_name | default(omit, true) }}"
description: "{{ __controller_schedule_item.description | default(lookup('infra.controller_configuration.enforce_defaults', enforce_default=controller_configuration_schedules_enforce_defaults , default_value='', omit_value=omit), true) }}"
rrule: "{{ __controller_schedule_item.rrule | mandatory }}"
rrule: "{{ __controller_schedule_item.rrule | default(lookup('infra.controller_configuration.enforce_defaults', enforce_default=controller_configuration_schedules_enforce_defaults , default_value='', omit_value=omit), true) }}"
extra_data: "{{ __controller_schedule_item.extra_data | default(lookup('infra.controller_configuration.enforce_defaults', enforce_default=controller_configuration_schedules_enforce_defaults , default_value={}, omit_value=omit), true) }}"
inventory: "{{ __controller_schedule_item.inventory | default(lookup('infra.controller_configuration.enforce_defaults', enforce_default=controller_configuration_schedules_enforce_defaults , default_value='', omit_value=omit), true) }}"
credentials: "{{ __controller_schedule_item.credentials | default(omit, true) }}"
Expand Down