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

Error executing action install on resource 'inspec_gem[inspec]' #350

Open
montorro opened this issue Jan 15, 2019 · 3 comments
Open

Error executing action install on resource 'inspec_gem[inspec]' #350

montorro opened this issue Jan 15, 2019 · 3 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@montorro
Copy link

Cookbook version

7.1.0

Chef-client version

14.2.0

Platform Details

Windows 2016 Standard Edition

Scenario:

Trying to run the audit cookbook.

Steps to Reproduce:

Executing with -o recipe flag. The idea is to test that cookbook safely runs on Windows platform so we can then use this cookbook as part of a Role.

Expected Result:

Run the cookbook fine.

Actual Result:

First error after the run:

Error executing action install on resource 'inspec_gem[inspec]'

NameError

undefined local variable or method `version' for #<#Class:0x0000000004eeece8:0x00000000042b9428>

And then:

================================================================================
Recipe Compile Error in C:/chef/cache/cookbooks/iga-audit/recipes/default.rb

NameError

inspec_gem[inspec] (audit::inspec line 20) had an error: NameError: undefined local variable or method `version' for #<#Class:0x0000000004eeece8:0x00000000042b9428>

Thanks in advance.

@welcomebot
Copy link

Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

@PopPopDevOps
Copy link

I had the same issue and pulled a newer version of the audit cookbook and that error went away.

@zenspider zenspider added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Oct 14, 2019
@zenspider
Copy link

This issue needs better clarity on how to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Development

No branches or pull requests

4 participants