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

windows_package uses 'returns' not 'source_codes' #10

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

jessepiccolo
Copy link
Contributor

@descention
Copy link

I'd like to recommend a fix for backwards compatibility. https://github.com/criteo-cookbooks/ms_dotnet/pull/43/files#diff-a7d2eeb2d086b81cd0d199ea024b68e3R80

@atikhono
Copy link

@sneal Could you please have a look? This breaks the VS cookbook with windows cookbook >= 3.0.0.
windows_package is a part of check-client 12.6. The current state VS cookbook fails with:

=============================================================
           Error executing action `install` on resource 'visualstudio_edition[visualstudio]'
=============================================================
           NoMethodError
           -------------
           undefined method `success_codes' for Chef::Resource::WindowsPackage

install and edition providers. They replaced success_codes functionality with returns.

As for myself, no point in keeping compatibility with an old chef-client. Those who need it can lock themselves to an old visualstudio cookbook. Otherwise, the fix would be this (as suggested by @descention):

-        success_codes [0, 127, 3010]
+        success_codes [0, 127, 3010] if respond_to? :success_codes
+        returns [0, 127, 3010] if respond_to? :returns

@jbontech
Copy link

I also have same issue could u pls give ma workaround for this .

@sneal
Copy link
Contributor

sneal commented May 26, 2017

How about this?

@spotlesscoder
Copy link

Why hasn't this been merged yet?

@martinmosegaard
Copy link

Ping!

@elmic11111
Copy link

Ping

@chaim1221
Copy link
Contributor

Hi there, I fixed part of this in #17 but you found one locations I didn't quite get. One line change, and apparently it was long enough ago that #18 wasn't an issue ;) –merged.

@chaim1221 chaim1221 merged commit 58ef0be into sous-chefs:master Mar 5, 2018
@jessepiccolo jessepiccolo deleted the sourceCodesFix branch June 6, 2019 19:41
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

Successfully merging this pull request may close these issues.

9 participants