summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-04-27 23:25:59 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-04-27 23:25:59 +0000
commit21eab22997732b98850320906e514b50f6b6fe97 (patch)
treee8cd81f9f0151a13d2521e1265f6e13d84afefe9 /lib
parent94bd3b28284f92583d6c49165d0dff1560e888ff (diff)
downloadpuppet-21eab22997732b98850320906e514b50f6b6fe97.tar.gz
puppet-21eab22997732b98850320906e514b50f6b6fe97.tar.xz
puppet-21eab22997732b98850320906e514b50f6b6fe97.zip
Okay, one last try -- the Util#binary command was not returning a path in all true cases, and the provider tests were poorly written and missed it.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2427 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb
index 8e07a27a1..777afab5f 100644
--- a/lib/puppet/util.rb
+++ b/lib/puppet/util.rb
@@ -221,7 +221,7 @@ module Util
def binary(bin)
if bin =~ /^\//
if FileTest.exists? bin
- return true
+ return bin
else
return nil
end