We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to https://linux.die.net/man/5/crontab
@weekly : Run once a week, ie. "0 0 * * 0".
Inspec's processing of @weekly is broken. hours reports [*] instead of [0]
@weekly
hours
[*]
[0]
diff --git lib/inspec/resources/crontab.rb lib/inspec/resources/crontab.rb index ff3561d81..c051d469f 100644 --- lib/inspec/resources/crontab.rb +++ lib/inspec/resources/crontab.rb @@ -130,7 +130,7 @@ module Inspec::Resources HOURLY = { "minute" => "0" }.freeze DAILY = HOURLY .merge("hour" => "0").freeze - WEEKLY = HOURLY .merge("weekday" => "0").freeze + WEEKLY = DAILY .merge("weekday" => "0").freeze MONTHLY = DAILY .merge("day" => "1").freeze YEARLY = MONTHLY .merge("month" => "1").freeze REBOOT = {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the problem
According to https://linux.die.net/man/5/crontab
Inspec's processing of
@weekly
is broken.hours
reports[*]
instead of[0]
Possible Solution
The text was updated successfully, but these errors were encountered: