Closed tiagolo closed 7 years ago
I have recently noticed this to on chef 13. I have not had a chance to dig so I'm not sure if it is a chef 13 bug or a chocolatey compatibility issue. We should definitely investigate but in the meantime you could use the last chef 12 release.
Looks like this is definitely a bug in chef 13. It works for me on 2012R2 but not 2016. Any call to powershell_out!
raises this error. I filed https://github.com/chef/chef/issues/6082 to track this.
I was wrong and closed the chef issue. chef 13 defines a method env_path
tha tconflicts with our helper.
Cookbook version
1.1.0
Chef-client version
13.0.18
Platform Details
Windows 10 Pro Windows 7
Scenario:
Running the default recipe for chocolatey-cookbook results in an error on the powershell_script resource
Steps to Reproduce:
Chef Recipe
Execution
Running with chef-client
Actual Result:
Powershell_script ArgumentError
Complete error stack