summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/type/service.rb12
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