Chef/Deprecations/CookbookDependsOnPartialSearch
The Cookstyle cops department: Chef/Deprecations
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | No | 13.0+ |
Don’t depend on the partial_search cookbook made obsolete by Chef Infra Client 13.
Examples
# bad
depends 'partial_search'
# good
# the built-in search helper takes a filter_result option
search(:node, 'role:web', filter_result: { 'name' => ['name'], 'ip' => ['ipaddress'] })
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 5.1.0 | String |
| Include |
| Array |