HomeSoftware Heritage

Fix ensure_packages

Description

Fix ensure_packages

Flip "installed" and "present" in Function "ensure_packages".
Puppet-Type "package" defaults to "installed" and not to "present" (compare https://github.com/puppetlabs/puppet/blob/main/lib/puppet/type/package.rb#L148).
This Misconception lies in the Code since the most early Days.

With flipping these two Values, Rspec-Tests do not have to be adapted, when migrating from "package {}" to "ensure_packages()".

Details

Provenance
Cocker Koch <github@cocker.cc>Authored on Jul 28 2021, 1:19 AM
olasdPushed on Dec 28 2021, 10:47 AM
Parents
rSPSTDf1acb051e61f: Merge pull request #1194 from puppetlabs/pdksync_iac-1149
Branches
Unknown
Tags
Unknown

Event Timeline

Cocker Koch <github@cocker.cc> committed rSPSTD77a9c07c9e64: Fix ensure_packages (authored by Cocker Koch <github@cocker.cc>).Jul 28 2021, 1:30 AM