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

Update to use new Custom Resources format #29

Open
jsmartt opened this issue May 9, 2019 · 1 comment
Open

Update to use new Custom Resources format #29

jsmartt opened this issue May 9, 2019 · 1 comment

Comments

@jsmartt
Copy link
Contributor

jsmartt commented May 9, 2019

Scenario/Intent

Make this cookbook support Chef 13+

Environment Details

  • iLO Cookbook Version: 1.4.0
  • iLO Appliance Type: All
  • iLO Firmware Version: All
  • chef-client Version: 13 or 14
  • platform: All

Steps to Reproduce

  1. Update the Gemfile from gem 'chef', '~> 12.5' to just gem 'chef'
  2. Remove your Gemfile.lock if you have one
  3. Run bundle install
  4. Run rake unit

Expected Result

Test to pass

Actual Result

Lots of undefined local variable or method errors get raised. Apparently the ::property method in newer versions of chef don't make those properties available as methods with the same name.

See https://docs.chef.io/custom_resources_notes.html and https://docs.chef.io/custom_resources.html

@Firenice03
Copy link

Any update? - I receive undefined local variable or method errors whenever it tries to populate ilos ...

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

No branches or pull requests

2 participants