From 05a389b27f0718b21a457b9e8c91e2d472abe858 Mon Sep 17 00:00:00 2001
From: Thomas Bellman <bellman@lysator.liu.se>
Date: Tue, 15 Dec 2020 21:08:20 +0100
Subject: [PATCH] Quote numeric (octal) file modes.

In order for numeric file modes to still be properly interpreted as
octal modes in Puppet version 4 and later, they need to be specified
as strings, not as integers.  There was one instance where we had
missed that.  Fix it.
---
 manifests/serial/login.pp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manifests/serial/login.pp b/manifests/serial/login.pp
index 09a8004..8275dc8 100644
--- a/manifests/serial/login.pp
+++ b/manifests/serial/login.pp
@@ -130,7 +130,7 @@ define console::serial::login::rhel_6(
 	file {
 	    "/etc/init/${svcname}.conf":
 		ensure => file,
-		owner => 'root', group => 'root', mode => 0444,
+		owner => 'root', group => 'root', mode => '0444',
 		content => inline_template(
 		    '<%= @lines.join("\n") + "\n" -%>'),
 		notify => Exec["console::serial::login::rhel_6::${name}"];
-- 
GitLab