Provide deprecation warnings on return values/facts #49900
Labels
affects_2.17
data_tagging
feature
This issue/PR relates to a feature request.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
Allow modules and actions to tag attributes of return values (including facts) as deprecated. Preserve the tagging within the controller and variable store, and only fire a deprecation warning when a tagged attribute is "touched" by a user-initiated event (usually templating).
This is prerequisite for the ultimate fix to #43798 (deprecating usage of all un-namespaced facts and eventually changing the default to namespaced-only).
Depends on #80747
ISSUE TYPE
COMPONENT NAME
AnsibleUnsafe
ADDITIONAL INFORMATION
Refactor AnsibleUnsafe to a new class that supports multiple types of tagging, and ensure that the various tagged data is always preserved if attempting to add a new tag. Trigger the warning when encountering a tagged value during templating.
The text was updated successfully, but these errors were encountered: