Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kitchen Converge fails with PowerShell5 and Windows cookbook version 3.0.0 #104

Closed
rschiefer opened this issue Mar 16, 2017 · 2 comments
Closed

Comments

@rschiefer
Copy link
Contributor

Version Info

PowerShell Cookbook v5.2.0
Chef Development Kit Version: 1.2.22
chef-client version: 12.18.31
Microsoft Windows [Version 10.0.14393]

Scenario:

Kitchen converge fails with the following error when running PowerShell5 recipe with Windows cookbook 3.0.0:

[2017-03-15T18:54:32-07:00] WARN: PowerShell 2.0 is not supported or already installed on this version of Windows: 6.1.7601
       ================================================================================
       Recipe Compile Error in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/acme_win_web/recipes/default.rb
       ================================================================================
       NoMethodError
       ————-
       undefined method `success_codes’ for Chef::Resource::WindowsPackage
       Platform:
       ———
       x64-mingw32

I was able to workaround this error by constraining the Windows cookbook to < 3.0.0

http://www.dotnetcatch.com/2017/03/16/chef-tip-constrain-dependent-cookbook-versions/

@michaeltlombardi
Copy link

Just ran into this as well.

@tas50
Copy link
Contributor

tas50 commented Mar 20, 2017

Fixed in master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants