From 4552c9fe247f5645d16ba1807caa86b16a4b6d06 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 13 Feb 2017 11:58:05 +0800 Subject: [PATCH] Disable the deprecation warnings as errors for puppet-syntax 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: If021c5ae7528bced9673923a5ad0027999b79e9b Related-Bug: #1660943 --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index 358c64f9..b7773914 100644 --- a/Rakefile +++ b/Rakefile @@ -14,6 +14,7 @@ PuppetLint.configuration.send('disable_140chars') PuppetLint.configuration.send('disable_class_inherits_from_params_class') PuppetLint.configuration.send('disable_documentation') PuppetLint.configuration.send('disable_single_quote_string_with_variables') +PuppetSyntax.fail_on_deprecation_notices = false exclude_paths = %w( pkg/**/*