]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Allow package_provider fact to resolve on PE 3.x
authorDavid Schmitt <david.schmitt@puppetlabs.com>
Fri, 18 Dec 2015 17:38:04 +0000 (17:38 +0000)
committerDavid Schmitt <david.schmitt@puppetlabs.com>
Fri, 18 Dec 2015 17:38:04 +0000 (17:38 +0000)
commit35b5d6bcc1c0d306eab50280b115e1e3a11671e0
tree05feabcf310223111d0c202e2171310da591ac89
parent8ea26c4c45347d402bc6e280ca021d3f1bbaab4f
Allow package_provider fact to resolve on PE 3.x

PE 3.x emits a puppetversion fact in the format "3.x.x (Puppet Enterprise 3.x.x)". This fact causes an error when invoked on PE 3.x: Could not retrieve fact='package_provider', resolution='<anonymous>': Malformed version number string 3.8.1 (Puppet Enterprise 3.8.1

This fix has been tested on PE 3.8.2 and should work for PE 3.3, 3.7, and 3.8.

Original-fix-by: Alex Harden <aharden@gmail.com>
lib/facter/package_provider.rb
spec/unit/facter/package_provider_spec.rb