chef-web-docs icon indicating copy to clipboard operation
chef-web-docs copied to clipboard

Maybe a problem with the note section for array call of package resource

Open Tensibai opened this issue 7 years ago • 0 comments

On line 498 of the package resource there's this note line:

.. note:: Notifications and subscriptions do not need to be updated when packages and versions are added or removed from the package_name or version properties.

I think it's half true, and could maybe be reworded as:

`.. note:: Notifications and subscriptions do not need to be updated when pacakges versions are updated in the version properties but must be updated if the list of packages changes.

Or keeping the note as is thenthe exemple above should be

package 'my_stack'  do
    package_name %w(package1 package2)
    version [ '1.3.4-2', '4.3.6-1']                  
    action :nothing
 end

log 'call a notification' do
     notifies :install, 'package[my_stack]', :immediately
end

Tensibai avatar Jan 30 '18 15:01 Tensibai