mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix docs... attempt 3
This commit is contained in:
parent
c691e0d1af
commit
18cfc15895
1 changed files with 4 additions and 4 deletions
|
@ -1804,8 +1804,7 @@ def add_trigger(name=None,
|
|||
|
||||
end_date (str):
|
||||
The date when the trigger is deactivated. The trigger cannot start
|
||||
the task after it is deactivated. Can be one of the following
|
||||
formats:
|
||||
the task after it is deactivated. Can be one of the following formats:
|
||||
|
||||
- %Y-%m-%d
|
||||
- %m-%d-%y
|
||||
|
@ -2251,11 +2250,12 @@ def add_trigger(name=None,
|
|||
trigger.DaysOfMonth = bits_days
|
||||
trigger.RunOnLastDayOfMonth = kwargs.get('last_day_of_month', False)
|
||||
else:
|
||||
return 'Monthly trigger requires "days_of_month" or "last_day_of_month" parameters'
|
||||
return 'Monthly trigger requires "days_of_month" or "last_day_of_' \
|
||||
'month" parameters'
|
||||
|
||||
# Monthly Day Of Week Trigger Parameters
|
||||
elif trigger_types[trigger_type] == TASK_TRIGGER_MONTHLYDOW:
|
||||
trigger.Id = 'Monthy_DOW_ID1'
|
||||
trigger.Id = 'Monthly_DOW_ID1'
|
||||
if kwargs.get('months_of_year', False):
|
||||
bits_months = 0
|
||||
for month in kwargs.get('months_of_year'):
|
||||
|
|
Loading…
Add table
Reference in a new issue