Skip to main content

Chef/Deprecations/ExecutePathProperty

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

In Chef Infra Client 13 and later you must set path env vars in execute resources using the environment property not the legacy path property.

Examples

incorrect

execute 'some_cmd' do
  path '/foo/bar'
end

correct

execute 'some_cmd' do
  environment {path: '/foo/bar'}
end

Configurable attributes

NameDefault valueConfigurable values
Version Added6.17.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results