From 21e6b1945d50ae06865d9cfa53d9e5fdf6c30bc2 Mon Sep 17 00:00:00 2001 From: Mykyta Karpin Date: Thu, 2 Feb 2017 12:32:50 +0200 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: I8575064411ed54a29adb181375fc822a672ea6c3 Closes-Bug: #1661200 (cherry picked from commit 49ee82dc151386f5d154e37d1c2f180b10dec7e8) --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index ffd78e5ce6..60134d6994 100644 --- a/Rakefile +++ b/Rakefile @@ -33,6 +33,7 @@ PuppetSyntax.exclude_paths ||= [] PuppetSyntax.exclude_paths << "**/spec/fixtures/**/*" PuppetSyntax.exclude_paths << "**/pkg/**/*" PuppetSyntax.exclude_paths << "**/vendor/**/*" +PuppetSyntax.fail_on_deprecation_notices = false # Main task list