From: elijah Date: Fri, 23 Nov 2012 09:51:23 +0000 (-0800) Subject: hide puppet deprecation warnings unless running with a higher verbosity. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3e153978671956d17cf743b8d22ea72ae3355f28;p=leap%2Fleap_cli.git hide puppet deprecation warnings unless running with a higher verbosity. --- diff --git a/vendor/supply_drop/lib/supply_drop/writer/streaming.rb b/vendor/supply_drop/lib/supply_drop/writer/streaming.rb index 334a41e..6abe90d 100644 --- a/vendor/supply_drop/lib/supply_drop/writer/streaming.rb +++ b/vendor/supply_drop/lib/supply_drop/writer/streaming.rb @@ -15,6 +15,11 @@ module SupplyDrop if data =~ /^(notice|err|warning):/ @mode = $1 + # make deprecation warnings like notices + if data =~ /^warning: .*is deprecated.*$/ + @mode = 'notice' + end + # force the printing of 'finished catalog run' if there have not been any errors if @mode == 'notice' && !@error_encountered && data =~ /Finished catalog run/ @mode = 'forced_notice'