Skip to content

Commit 39c16d1

Browse files
committed
(puppetlabs#9440) exec resource: set path param to path fact
1 parent fc698a2 commit 39c16d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/puppet/type/exec.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ def sync
223223
newparam(:path) do
224224
desc "The search path used for command execution.
225225
Commands must be fully qualified if no path is specified. Paths
226-
can be specified as an array or as a '#{File::PATH_SEPARATOR}' separated list."
226+
can be specified as an array or as a '#{File::PATH_SEPARATOR}' separated list. Defaults to the `path` fact."
227+
228+
defaultto Puppet.runtime[:facter].value('path')
227229

228230
# Support both arrays and colon-separated fields.
229231
def value=(*values)

0 commit comments

Comments
 (0)