diff options
author | Markus Roberts <Markus@reality.com> | 2010-11-04 13:53:23 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-11-12 15:02:00 +1100 |
commit | b15231df5842df2ea83b779b22e6756e51bc39d0 (patch) | |
tree | 34978db4a199ccca92e35c66e154851bc60fff27 /lib/puppet/util/command_line.rb | |
parent | ea435a43dc97487d054271a9efb208f361408339 (diff) | |
download | puppet-b15231df5842df2ea83b779b22e6756e51bc39d0.tar.gz puppet-b15231df5842df2ea83b779b22e6756e51bc39d0.tar.xz puppet-b15231df5842df2ea83b779b22e6756e51bc39d0.zip |
Fix for #4299 -- Don't require which
We already had an internal implementation of which hiding under an assumed
name (Puppet::Util.binary); this commit calls it out of hiding and uses it
consisantly.
Diffstat (limited to 'lib/puppet/util/command_line.rb')
-rw-r--r-- | lib/puppet/util/command_line.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/command_line.rb b/lib/puppet/util/command_line.rb index 2a97ee069..3562a3dc0 100644 --- a/lib/puppet/util/command_line.rb +++ b/lib/puppet/util/command_line.rb @@ -62,7 +62,7 @@ module Puppet external_command = "puppet-#{subcommand_name}" require 'puppet/util' - path_to_subcommand = Puppet::Util.binary( external_command ) + path_to_subcommand = Puppet::Util.which( external_command ) return false unless path_to_subcommand system( path_to_subcommand, *args ) |