From 8996ede11c70d08a8e5c92912d67b1bfe716dc29 Mon Sep 17 00:00:00 2001 From: Jory Osterptak Date: Thu, 18 Jul 2024 12:56:11 -0400 Subject: [PATCH 1/2] #1346 - Update deprecated shell_escape function For stdlib 9.x and later, the shell_escape function has been moved to stdlib::shell_escape. This change breaks compatiblity with stdlib 8.x --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 3a028a7b..56575d24 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -284,7 +284,7 @@ contain systemd::install if $default_target { - $target = shell_escape($default_target) + $target = stdlib::shell_escape($default_target) service { $target: ensure => 'running', enable => true, From 9343596c8cbc7bb22004e7084995cab7e4246961 Mon Sep 17 00:00:00 2001 From: Jory Osterptak Date: Mon, 22 Jul 2024 10:28:45 -0400 Subject: [PATCH 2/2] Update minimum stdlib version to 9.0.0 This is due to stdlib functions such as shell_escape being rescoped to the stdlib namespace in stdlib 9.0.0 --- metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.json b/metadata.json index ec7ce2ee..3763157c 100644 --- a/metadata.json +++ b/metadata.json @@ -10,7 +10,7 @@ "dependencies": [ { "name": "puppetlabs/stdlib", - "version_requirement": ">= 8.5.0 < 10.0.0" + "version_requirement": ">= 9.0.0 < 10.0.0" }, { "name": "puppetlabs/inifile",