Skip to content

Commit

Permalink
Do not update exabgp resource every chef run (#25)
Browse files Browse the repository at this point in the history
Use ::Chef::Log.warn instead of the log resource, otherwise the
parent exabgp resource is always updated.
  • Loading branch information
Annih authored and onlyhavecans committed Sep 12, 2018
1 parent 5afcc61 commit 586e202
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resources/exabgp.rb
Expand Up @@ -9,10 +9,7 @@
include ExabgpCookbook::Helpers

action :install do
log 'deprecation_warning' do
message '***EXABGP COOKBOOK DEPRECATION NOTICE!*** The exabgp resource will be replaced by exabgp_install and exabgp_config in a future release. It will also only support Chef 13.10+ so please pin your version now to avoid issues in the very near future! See README for migration details.'
level :warn
end
::Chef::Log.warn '***EXABGP COOKBOOK DEPRECATION NOTICE!*** The exabgp resource will be replaced by exabgp_install and exabgp_config in a future release. It will also only support Chef 13.10+ so please pin your version now to avoid issues in the very near future! See README for migration details.'

case new_resource.install_type
when :package
Expand Down

0 comments on commit 586e202

Please sign in to comment.