class Chef::Exceptions::ImmutableAttributeModification

Node::Attribute computes the merged version of of attributes and makes it read-only. Attempting to modify a read-only attribute will cause this error.

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/chef/exceptions.rb, line 218
def initialize
  super "Node attributes are read-only when you do not specify which precedence level to set. " +
    %q{To set an attribute use code like `node.default["key"] = "value"'}
end