On a Windows 2012 R2 node, the command: "puppet resource package --trace"
generates the following error:
Debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not exist[0m
[1;31mError: Could not run: undefined local variable or method `data' for Puppet::Provider::Package::Windows::Package:Class
C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/registry.rb:216:in `block in read'
Line 216 in puppet/util/windows/registry.rb is this:
result = [ type, data.read_bytes(0, byte_length) ]
That line uses "data.read_bytes", but all the other lines in that case statement use "data_ptr.read_bytes". This appears to be an oversight.