diff options
author | Luke Kanies <luke@madstop.com> | 2005-06-29 21:00:03 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-06-29 21:00:03 +0000 |
commit | 26bc12ba3cb0caebd890d6551b2918cc2f74e106 (patch) | |
tree | cb562991604941f95493c35f3b3f7c6a2a85bd88 | |
parent | bb7e2833f0ea9c97d55fcb76e5811c035161256f (diff) | |
download | puppet-26bc12ba3cb0caebd890d6551b2918cc2f74e106.tar.gz puppet-26bc12ba3cb0caebd890d6551b2918cc2f74e106.tar.xz puppet-26bc12ba3cb0caebd890d6551b2918cc2f74e106.zip |
further output cleanup, and fixed the problem with tc_server.rb leaving sleeper processes lying around
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@321 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r-- | lib/puppet/event.rb | 2 | ||||
-rw-r--r-- | lib/puppet/transportable.rb | 12 | ||||
-rw-r--r-- | lib/puppet/type/service.rb | 4 | ||||
-rw-r--r-- | test/other/tc_transactions.rb | 2 |
4 files changed, 11 insertions, 9 deletions
diff --git a/lib/puppet/event.rb b/lib/puppet/event.rb index 3ca76a83b..61efc52de 100644 --- a/lib/puppet/event.rb +++ b/lib/puppet/event.rb @@ -130,7 +130,7 @@ class Puppet::NotUsed # access to the actual hash, which is silly def action if not defined? @actions - puts "defining action hash" + Puppet.debug "defining action hash" @actions = Hash.new end @actions diff --git a/lib/puppet/transportable.rb b/lib/puppet/transportable.rb index c803a9e3d..9d1373024 100644 --- a/lib/puppet/transportable.rb +++ b/lib/puppet/transportable.rb @@ -51,16 +51,14 @@ module Puppet def to_type retobj = nil if type = Puppet::Type.type(self.type) - #begin + begin # this will fail if the type already exists # which may or may not be a good thing... retobj = type.new(self) - #rescue => detail - # Puppet.err "Failed to create %s: %s" % [type.name,detail] - # puts self.class - # puts self.inspect - # exit - #end + rescue => detail + Puppet.err "Failed to create %s: %s" % [type.name,detail] + return nil + end else raise "Could not find object type %s" % self.type end diff --git a/lib/puppet/type/service.rb b/lib/puppet/type/service.rb index 99c43b1d5..d59d227fc 100644 --- a/lib/puppet/type/service.rb +++ b/lib/puppet/type/service.rb @@ -132,6 +132,10 @@ module Puppet raise "Could not find init script for '%s'" % name end + def Service.searchpath + return @searchpaths + end + def Service.setpath(ary) # verify each of the paths exists #ary.flatten! diff --git a/test/other/tc_transactions.rb b/test/other/tc_transactions.rb index ec1b9f277..ac2cd8578 100644 --- a/test/other/tc_transactions.rb +++ b/test/other/tc_transactions.rb @@ -25,7 +25,7 @@ class TestTransactions < Test::Unit::TestCase Puppet::Type.allclear } - print "\n\n" + print "\n\n" if Puppet[:debug] end def newfile |