Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
Description
The Problem
If you make a scheduled task using the on in the trigger attribute you cannot switch to using day_of_week and which_occurence. The opposite is also not allowed.
When you have an existing scheduled resource on the system and you edit the puppet code to be the opposite type of monthly trigger you will receive an error like...
Puppet (err): Neither 'day_of_week' nor 'which_occurrence' can be specified when creating a monthly date-based trigger
|
However, if you change the name of the scheduled_task and execute the same puppet code it will work.
Workaround
The simplest thing to do is ensure => absent on the old scheduled task name and then make a new one with the same puppet code and a different name.
Attachments
Issue Links
- is blocked by
-
MODULES-6526 scheduled_task: modify v1 task to add compatibility property, add helper class that v2 provider consumes for working with v2 tasks
-
- Resolved
-