diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-30 19:31:59 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-30 19:31:59 +0000 |
commit | 7825f4944c3b29a994bc9be947f0463a68d2cc8e (patch) | |
tree | 7a7d26c7b2d78b38fb761e6d4aaef72edc3323c2 /lib | |
parent | 65f6656b58f35faa6566b27a0595c656a0e36765 (diff) | |
download | puppet-7825f4944c3b29a994bc9be947f0463a68d2cc8e.tar.gz puppet-7825f4944c3b29a994bc9be947f0463a68d2cc8e.tar.xz puppet-7825f4944c3b29a994bc9be947f0463a68d2cc8e.zip |
Changing test for service paths; only testing if it is a directory if it is present.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1152 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/service.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/puppet/type/service.rb b/lib/puppet/type/service.rb index 59ae833c7..4a7b72268 100644 --- a/lib/puppet/type/service.rb +++ b/lib/puppet/type/service.rb @@ -219,11 +219,13 @@ module Puppet if FileTest.directory?(path) next end - unless FileTest.directory?(path) - @parent.info("Search path %s is not a directory" % [path]) - end - unless FileTest.exists?(path) - @parent.info("Search path %s does not exist" % [path]) + if FileTest.exists?(path) + unless FileTest.directory?(path) + @parent.debug "Search path %s is not a directory" % + [path] + end + else + @parent.debug("Search path %s does not exist" % [path]) end paths.delete(path) end |