Skip to content

Commit

Permalink
(puppetlabs#9440) exec resource: set path param to path fact
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 7, 2024
1 parent fc698a2 commit c5f0280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/puppet/type/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit c5f0280

Please sign in to comment.