Attributes: Rename 'default' option #3756
Labels
Aspect: UI-UX
Component: Inputs
Parameter Input system (formerly attributes)
Type: Deprecation
Removal of existing features
馃帥 Description
Currently, to set the value of an attribute in control code, you say:
Likewise, in the metadata file, if you set a value, you use:
In addition, in control code, we have the
value=
method...attribute('user').value = 'susan'
This sets up a scenario where it might imply that there is some kind of precedence going on, like the Chef Client's default/normal/override/automatic. That has been a major source of confusion in the chef community, which we'd like to avoid.
Moving forward, we want to be clear that while there may be multiple sources for an attribute's value (--attrs, metadata, inline in code) the precedence is entirely determined by the source, not by some additional precedence level dimension.
馃實 InSpec and Platform Version
v3.2.x
馃拋 Possible Solutions
Introduce 'value' as the only accepted option. Deprecate 'default' over the next two major versions.
Refs #3748
The text was updated successfully, but these errors were encountered: