Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
VMware Windows 2012 r2 .NET4.5
puppet agent v3.8.7
Chocolatey v0.10.3
puppetlabs-chocolatey v2.0.0-b20066-35b34ff1
-
-
Modules
-
2
-
Modules 2016-12-14
Description
Repro steps:
- Install puppet agent.
- Install chocolatey client
- Install chocolatey module
- Remove all <source> from the Chocolatey config file \ProgramData\chocolatey\config\chocolatey.config
- Apply a manifest that installs a package like this:
package { "7zip": ensure => present, provider => chocolatey, }
Expected error (this is what you get if you run the choco command directly on the command line):
Installation was NOT successful. There are no sources enabled for packages and none were passed as arguments.
Actual error:
Notice: Compiled catalog for win-lqdv0cfio2q.localdomain in environment production in 0.02 seconds
Error: Could not prefetch package provider 'chocolatey': undefined method `each' for nil:NilClass
Error: /Package[7zip]: Could not evaluate: undefined method `each' for nil:NilClass
Attachments
Issue Links
- links to