From c5f028036c8fbfa630908accde91cf1b89f4b46c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 7 Aug 2024 16:21:38 +0200 Subject: [PATCH] (#9440) exec resource: set path param to path fact --- lib/puppet/type/exec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index fb47b133848..9795f72f404 100644 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -225,6 +225,8 @@ def sync Commands must be fully qualified if no path is specified. Paths can be specified as an array or as a '#{File::PATH_SEPARATOR}' separated list." + defaultto Puppet.runtime[:facter].value('path') + # Support both arrays and colon-separated fields. def value=(*values) @value = values.flatten.collect { |val|