summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-02-01 16:48:33 -0800
committerJacob Helwig <jacob@puppetlabs.com>2011-02-01 16:48:33 -0800
commit9a7a39b3f9302b912e15fd77b4e18662e83089e4 (patch)
treeaf49e5eaa2643acc8864f6102c46df072046ce10
parent9d452353f887fcd3c916db970eda4a67971eb4f3 (diff)
parent1bfc9a0314c3b6247a3a1e4689c80997d343b2dc (diff)
downloadpuppet-9a7a39b3f9302b912e15fd77b4e18662e83089e4.tar.gz
puppet-9a7a39b3f9302b912e15fd77b4e18662e83089e4.tar.xz
puppet-9a7a39b3f9302b912e15fd77b4e18662e83089e4.zip
Merge remote branch 'jamtur01/tickets/2.6.x/6071' into 2.6.next
* jamtur01/tickets/2.6.x/6071: Fixed #6071 - Fixed typo and improved exec path error message
-rwxr-xr-xlib/puppet/type/exec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb
index 8019af67e..daa49e223 100755
--- a/lib/puppet/type/exec.rb
+++ b/lib/puppet/type/exec.rb
@@ -305,7 +305,7 @@ module Puppet
# Pull down the main aliases file
file { \"/etc/aliases\":
source => \"puppet://server/module/aliases\"
- }
+ }
# Rebuild the database, but only when the file changes
exec { newaliases:
@@ -634,7 +634,7 @@ module Puppet
def validatecmd(cmd)
exe = extractexe(cmd)
# if we're not fully qualified, require a path
- self.fail "'#{cmd}' is both unqualifed and specified no search path" if File.expand_path(exe) != exe and self[:path].nil?
+ self.fail "'#{cmd}' is not qualified and no path was specified. Please qualify the command or specify a path." if File.expand_path(exe) != exe and self[:path].nil?
end
def extractexe(cmd)