ExecutePathProperty
The department is: Chef/Deprecations
The full name of the cop is: Chef/Deprecations/ExecutePathProperty
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | No | All 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
Name | Default value | Configurable values |
---|---|---|
Version Added | 6.17.0 | String | Exclude |
|
Array |
Was this page helpful?