]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
hide puppet deprecation warnings unless running with a higher verbosity.
authorelijah <elijah@riseup.net>
Fri, 23 Nov 2012 09:51:23 +0000 (01:51 -0800)
committerelijah <elijah@riseup.net>
Fri, 23 Nov 2012 09:51:23 +0000 (01:51 -0800)
vendor/supply_drop/lib/supply_drop/writer/streaming.rb

index 334a41e4d9a1205fb7c5b92e97bdb5d48303b88c..6abe90d147931dd5d27ba834f57e3cbeeb5efa72 100644 (file)
@@ -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'