Skip to main content

DnfPackageAllowDowngrades

All Cookstyle Cops


The department is: Chef/Correctness

The full name of the cop is: Chef/Correctness/DnfPackageAllowDowngrades


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

The dnf_package resource does not support the allow_downgrades property.

Examples

incorrect

dnf_package 'nginx' do
  version '1.2.3'
  allow_downgrades true
end

correct

dnf_package 'nginx' do
  version '1.2.3'
end

Configurable attributes

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

Was this page helpful?









Search Results