Disable the deprecation warnings as errors for puppet-syntax
authorEmilien Macchi <emilien@redhat.com>
Wed, 1 Feb 2017 13:57:58 +0000 (08:57 -0500)
committerEmilien Macchi <emilien@redhat.com>
Wed, 1 Feb 2017 13:57:58 +0000 (08:57 -0500)
Recently puppet4 started deprecating ruby 2.0 with the following
commit: https://github.com/puppetlabs/puppet/commit/e9eda7ed56fddcf185fc155d7e0ae054ea327504

One way to work-around this (in the absence of a more recent ruby
version) is to not treat this deprecation warnings as fatal when
doing the puppet syntax check

Change-Id: Id49c5068ab4609e3da0417af4714e8cb8485f3d1
Closes-Bug: #1660943

Rakefile

index bca6a6c..97f4761 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -4,3 +4,4 @@ require 'puppet-lint/tasks/puppet-lint'
 PuppetLint.configuration.fail_on_warnings = true
 PuppetLint.configuration.send('disable_80chars')
 PuppetLint.configuration.send('disable_autoloader_layout')
+PuppetSyntax.fail_on_deprecation_notices = false