Closed hartmantis closed 7 years ago
Hi @RoboticCheese, thanks for this excellent pull request! I appreciate your efforts to add a new feature, complete with tests and a documentation example! 😻
At first glance I think this looks good, and I believe we may be able to include it in the impending 3.2.0 release.
Description
Because 'when' is also a reserved keyword in Ruby, that can't be the name of the new attribute on the filter resource. However, 'days' is the only valid attribute within the 'when' scope, so that seemed a decent option.
Motivation and Context
There is currently no way to place data in the 'when' attribute scope of a filter other than using the sensu_json_file resource directly.
How Has This Been Tested?
ChefSpec tests have been added and confirmed to pass.
Screenshots (if appropriate):
N/A
Types of changes
Checklist: