Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

COOK-2468 - Chef 11 compat fixes #31

Merged
merged 6 commits into from
Feb 28, 2013
Merged

COOK-2468 - Chef 11 compat fixes #31

merged 6 commits into from
Feb 28, 2013

Conversation

schisamo
Copy link
Contributor

  • Set precedence level when setting node attributes
  • Stop Chef::Exceptions::ShellCommandFailed deprecation messages
  • Fix assorted Foodcritic warnings
  • Add test-kitchen 1.0.0 alpha support

This fixes the `Chef::Exceptions::ImmutableAttributeModification` which 
is thrown when run on Chef 11+
This also fixes [FC017] in addition to providing better encapsulation.
Checking for a non-zero exit code accomplishes the same thing as
rescuing *::ShellCommandFailed.
The 1.0 branch of test-kitchen is based on Fletcher Nichol's excellent
Jamie CI codebase.
@@ -25,7 +25,7 @@
if platform_family?('rhel') && major_version < 6
include_recipe 'yum::epel'
python_pkgs = ["python26", "python26-devel"]
node['python']['binary'] = "/usr/bin/python26"
node.set['python']['binary'] = "/usr/bin/python26"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious if the normal attribute precedence is a Chef 10 attribute precedence fail-ism. Do you know?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jtimberman pushed a commit that referenced this pull request Feb 28, 2013
COOK-2468 - Chef 11 compat fixes
@jtimberman jtimberman merged commit 4afbc55 into master Feb 28, 2013
@jtimberman jtimberman deleted the COOK-2468 branch May 17, 2013 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants