aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-23 01:51:23 -0800
committerelijah <elijah@riseup.net>2012-11-23 01:51:23 -0800
commit3e153978671956d17cf743b8d22ea72ae3355f28 (patch)
tree11339500fa50c67043ea82d383ea710c923b7a7c /vendor
parent30f42d5869f65d3171878b4d6d94e9c3813f02cf (diff)
downloadleap_cli-3e153978671956d17cf743b8d22ea72ae3355f28.tar.gz
leap_cli-3e153978671956d17cf743b8d22ea72ae3355f28.tar.bz2
hide puppet deprecation warnings unless running with a higher verbosity.
Diffstat (limited to 'vendor')
-rw-r--r--vendor/supply_drop/lib/supply_drop/writer/streaming.rb5
1 files changed, 5 insertions, 0 deletions
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'