diff options
author | Luke Kanies <luke@madstop.com> | 2008-10-08 22:10:26 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-10-08 22:32:55 -0500 |
commit | 2bf0ba5651bfebf202bac5636063cece0208b667 (patch) | |
tree | 8e14936b93aec1b439082a1842f378c2d5465149 /lib/puppet | |
parent | 952ebb8bfaad10490ff15d70b4f69f3c0a52e481 (diff) | |
download | puppet-2bf0ba5651bfebf202bac5636063cece0208b667.tar.gz puppet-2bf0ba5651bfebf202bac5636063cece0208b667.tar.xz puppet-2bf0ba5651bfebf202bac5636063cece0208b667.zip |
Fixing a test that was failing because i-have-no-idea
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/util.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb index d6de3e2e1..59f732dae 100644 --- a/lib/puppet/util.rb +++ b/lib/puppet/util.rb @@ -227,7 +227,11 @@ module Util end else x = %x{which #{bin} 2>/dev/null}.chomp - return x + if x == "" + return nil + else + return x + end end end module_function :binary |