diff options
author | Luke Kanies <luke@madstop.com> | 2005-06-29 15:36:28 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-06-29 15:36:28 +0000 |
commit | 2b2975f06f86058589d5aeff1a4d7f0a72cf5b92 (patch) | |
tree | 27bf4b9f92ed8411a3be6081b6ce0bf2cdde020c /lib/puppet | |
parent | 0ac91efd23f25a729db0bf5b58631ae40a6b0ab2 (diff) | |
download | puppet-2b2975f06f86058589d5aeff1a4d7f0a72cf5b92.tar.gz puppet-2b2975f06f86058589d5aeff1a4d7f0a72cf5b92.tar.xz puppet-2b2975f06f86058589d5aeff1a4d7f0a72cf5b92.zip |
fixing metrics tests to work with everything else
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@316 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/metric.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/puppet/metric.rb b/lib/puppet/metric.rb index d9696b601..d66105bdf 100644 --- a/lib/puppet/metric.rb +++ b/lib/puppet/metric.rb @@ -18,9 +18,7 @@ module Puppet end def Metric.clear - @@metrics = {} - @@eventmetrics = nil - @@typemetrics = nil + Metric.init end def Metric.gather @@ -226,7 +224,6 @@ module Puppet RRD.graph(*args) rescue => detail Puppet.err "Failed to graph %s: %s" % [self.name,detail] - exit end end @@ -241,12 +238,10 @@ module Puppet args.push value[2] } arg = args.join(":") - Puppet.debug "Updating %s with %s" % [self.name,arg] begin RRD.update(self.path,args.join(":")) rescue => detail Puppet.err "Failed to update %s: %s" % [self.name,detail] - exit end end end |