Skip to main content

NodeDeepFetch

All Cookstyle Cops


The department is: Chef/Deprecations

The full name of the cop is: Chef/Deprecations/NodeDeepFetch


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

The node.deep_fetch method has been removed from Chef-Sugar, and must be replaced by the node.read API.

Examples

incorrect

node.deep_fetch("foo")

correct

node.read("foo")

#### incorrect

```ruby
node.deep_fetch!("foo")

correct

node.read!("foo")

Configurable attributes

NameDefault valueConfigurable values
Version Added5.12.0String
Exclude
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?