From 44e9490cc6a3cfc584527e6343b12c0642679bab Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 30 Aug 2021 10:33:04 +0200 Subject: [PATCH] puppet-lint: fix top_scope_facts warnings --- manifests/service_limits.pp | 2 +- manifests/tmpfiles.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/service_limits.pp b/manifests/service_limits.pp index fb30dd39..53b6d14e 100644 --- a/manifests/service_limits.pp +++ b/manifests/service_limits.pp @@ -72,7 +72,7 @@ if $restart_service { exec { "restart ${name} because limits": command => "systemctl restart ${name}", - path => $::path, + path => $facts['path'], refreshonly => true, subscribe => File["${path}/${name}.d/90-limits.conf"], } diff --git a/manifests/tmpfiles.pp b/manifests/tmpfiles.pp index a5fd03e2..3b613db4 100644 --- a/manifests/tmpfiles.pp +++ b/manifests/tmpfiles.pp @@ -18,6 +18,6 @@ exec { 'systemd-tmpfiles': command => "systemd-tmpfiles ${_ops}", refreshonly => true, - path => $::path, + path => $facts['path'], } }