From 39c16d169677afd9f5ae77d4741a55a878957af0 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index fb47b133848..1cd8779362a 100644 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -223,7 +223,9 @@ def sync newparam(:path) do desc "The search path used for command execution. 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." + can be specified as an array or as a '#{File::PATH_SEPARATOR}' separated list. Defaults to the `path` fact." + + defaultto Puppet.runtime[:facter].value('path') # Support both arrays and colon-separated fields. def value=(*values)