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

Skip to content

Commit 9de0b0a

Browse files
committed
[COOK-2468] set precedence level when setting node attributes
This fixes the `Chef::Exceptions::ImmutableAttributeModification` which is thrown when run on Chef 11+
1 parent 359f7a3 commit 9de0b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/package.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
if platform_family?('rhel') && major_version < 6
2626
include_recipe 'yum::epel'
2727
python_pkgs = ["python26", "python26-devel"]
28-
node['python']['binary'] = "/usr/bin/python26"
28+
node.set['python']['binary'] = "/usr/bin/python26"
2929
else
3030
python_pkgs = value_for_platform_family(
3131
"debian" => ["python","python-dev"],

0 commit comments

Comments
 (0)