Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.14.0
-
Component/s: None
-
Labels:None
Description
from crontab(5):
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
the regex in lib/chef/provider/cron.rb for matching CRON_PATTERN lines does not seem to take this into account, which can lead to unrelated jobs being eaten by a grue^Wchef.
Issue Links
- relates to
-
CHEF-939
Non-integer cron hour causes cron entry to be matched incorrectly
-
The following regex should fix the problem:
CRON_PATTERN = /\A([-0-9*,\/]+)\s([-0-9*,\/]+)\s([-0-9*,\/]+)\s([-0-9*,\/]+|[a-zA-Z]{3})\s([-0-9*,\/]+|[a-zA-Z]{3})\s(.*)/I will attach a simple patch.