Project

General

Profile

« Previous | Next » 

Revision 7e3ca5c2

Added by Michael Moll over 10 years ago

fixes #3874 - extend paths for FreeBSD support

View differences:

lib/proxy/puppet/salt.rb
class Salt < Runner
def run
cmd = []
cmd.push(which('sudo', '/usr/bin'))
cmd.push(which('salt', '/usr/bin'))
cmd.push(which('sudo'))
cmd.push(which('salt'))
if cmd.include?(false)
logger.warn 'sudo or the salt binary is missing.'

Also available in: Unified diff