summaryrefslogtreecommitdiff
path: root/RELEASE_NOTES.md
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-31 14:13:45 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-31 14:13:45 -0700
commite03de52ae82955c958e021fa609a00aa06a9e7c4 (patch)
treefd78b57067e868524c8653c7bcfa7f423da61f6b /RELEASE_NOTES.md
parent1b0cc1b541a9015fc925fc5d1ada6f85934fc0c7 (diff)
downloadchef-e03de52ae82955c958e021fa609a00aa06a9e7c4.tar.gz
[ci skip] note slight breakage in RELEASE_NOTES
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r--RELEASE_NOTES.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 3f3d8c44bb..81fa6c6e05 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -164,3 +164,17 @@ match when given partial strings (available since Chef 11). The `knife ssh` sea
search API matches in both cases. The node search fuzzifier has also been extracted out to a `fuzz` option to Chef::Search::Query for re-use
elsewhere.
+### Resources which later modify their name during creation will have their name changed on the ResourceCollection and notifications
+
+```ruby
+some_resource "name_one" do
+ name "name_two"
+end
+```
+
+The fix for sending notifications to multipackage resources involved changing the API which inserts resources into the resource collection slightly
+so that it no longer directly takes the string which is typed into the DSL but reads the (possibly coerced) name off of the resource after it is
+built. The end result is that the above resource will be named `some_resource[name_two]` instead of `some_resource[name_one]`. Note that setting
+the name (*not* the `name_property`, but actually renaming the resource) is very uncommon. The fix is to simply name the resource correctly in
+the first place (`some_resource "name_two" do ...`)
+