Closed domcleal closed 7 years ago
A more minimal reproducer:
case $::osfamily {
'RedHat': {
$datadir = $::operatingsystem ? {
'Amazon' => pick($datadir, "/var/lib/pgsql${package_version}/data"),
default => pick($datadir, '/var/lib/pgsql/data'),
}
}
}
We are also affected by this bug. We are not able to use puppet-lint after upgrade to 2.2.0.
/cc @lukastopiarz
Thanks for the report, I'll take a look and push out a new release with a bugfix shortly
/cc @lpgsk
@rodjek thanks, probably the issues is on our side, we run Puppet 3.8.x. The README.md reads Release 2.1.0 of puppet-lint is the last planned version with support for Puppet 3 and Ruby 1.8.7. Future versions will drop support for these versions.
Downgraded to 2.1.1 and lint runs smoothly again.
For the record, this also causes the puppet-lint-trailing_comma-check plugin to log warnings against case statements in manifests.
67123e44 seems to be the cause, as resource_indexes
now returns case statements as being resources.
Thanks for the investigation @domcleal. I've fixed the problem with resource_indexes
will push out a 2.2.1 bugfix release shortly, once #680 has been resolved.
Thanks for the quick fix, my tests are indeed passing now with master.
@rodjek thanks, 2.2.1 is OK. I guess the README.md should be modified...
When running puppet-lint 2.2.0 against puppetlabs-postgresql's params.pp, it fails with:
The whole file is also available here.
puppet-lint version: 2.2.0 ruby version: 2.3.1-p112 platform: x86_64-linux file path: manifests/params.pp file contents:
error: