chocolatey-archive / puppet-chocolatey

Chocolatey package provider
Apache License 2.0
87 stars 135 forks source link

chocolateyversion - bad parsing (to_s) for versioning #159

Open tek0011 opened 7 years ago

tek0011 commented 7 years ago

https://github.com/puppetlabs/puppetlabs-chocolatey/blob/3.0.0/lib/facter/chocolateyversion.rb

needs a to_s or something that would avoid:

chocolateyversion: !ruby/string:Puppet::Util::Execution::ProcessOutput 0.10.8

which is the output that is received via:
puppet facts --render-as yaml puppet facts --render-as json

side note anything with facter -p (-y|-j) seems to work fine

ferventcoder commented 7 years ago

@tek0011 Are you opening this in addition to one for puppetlabs/chocolatey?

tek0011 commented 7 years ago

oh. nope, but i sure will now! sorry, wrong project.

tek0011 commented 7 years ago

@ferventcoder Do you want that in puppetlabs issue tracker, you mean? puppetlabs/chocolatey has no option to open issues. I think thats why I lead myself here.

tek0011 commented 7 years ago

https://tickets.puppetlabs.com/browse/MODULES-5788