Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.7.16, 0.10.0
-
Fix Version/s: None
-
Component/s: Chef Client
-
Labels:None
-
Environment:
Ubuntu 9.04, rhel 5.6
Description
Setting the cron resource's hour to something like "*/8" causes the cron to be added and deleted on alternating runs of chef-client. When added, chef-client will print "INFO: Added cron 'cron_name'" and when deleted will print "INFO: Updated cron 'cron_name'". Switching to an integer hour value (even when provided as a string) fixes the problem.
Bugged:
cron "bugged_cron" do user "root" hour "*/8" minute "0" command "/bin/true" action :create end
Working:
cron "working_cron" do user "root" hour "8" minute "0" command "/bin/true" action :create end
Issue Links
- relates to
-
CHEF-3178
cron provider does not support month names and weekday names
-
Confirmed with chef-client and chef-server 0.8.4 for non-integer day-of-week as well. For example:
fail
success