Skip to main content

ChocolateyPackageUninstallAction

The department is: ChocolateyPackageUninstallAction

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

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Use the :remove action in the chocolatey_package resource instead of :uninstall which was removed in Chef Infra Client 14+.

Examples

incorrect

chocolatey_package 'nginx' do
  action :uninstall
end

correct

chocolatey_package 'nginx' do
  action :remove
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.5.0String
Include
    Array

    Was this page helpful?

    ×









    Search Results