Skip to content

Commit c5f0280

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/type/exec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ def sync
225225
Commands must be fully qualified if no path is specified. Paths
226226
can be specified as an array or as a '#{File::PATH_SEPARATOR}' separated list."
227227

228+
defaultto Puppet.runtime[:facter].value('path')
229+
228230
# Support both arrays and colon-separated fields.
229231
def value=(*values)
230232
@value = values.flatten.collect { |val|

0 commit comments

Comments
 (0)