summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/fact.rb2
-rw-r--r--lib/puppet/type/state.rb10
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/puppet/fact.rb b/lib/puppet/fact.rb
index c9707de4f..f17131d02 100644
--- a/lib/puppet/fact.rb
+++ b/lib/puppet/fact.rb
@@ -16,11 +16,9 @@ module Puppet
class Fact
def Fact.[](name)
fact = Facter[name]
- Puppet.debug "Got fact of type %s" % fact.class
if fact.value.nil?
raise "Could not retrieve fact %s" % name
end
- Puppet.debug("fact: got %s from %s for %s" % [fact.value,fact,name])
return fact.value
end
diff --git a/lib/puppet/type/state.rb b/lib/puppet/type/state.rb
index 7bbc22b8e..00a1f0815 100644
--- a/lib/puppet/type/state.rb
+++ b/lib/puppet/type/state.rb
@@ -42,10 +42,10 @@ class State < Puppet::Element
# if we're not in sync, return a statechange capable of putting us
# in sync
def evaluate
- debug "evaluating %s" % self
+ #debug "evaluating %s" % self
self.retrieve
if self.insync?
- debug "%s is in sync" % self
+ #debug "%s is in sync" % self
return nil
else
return Puppet::StateChange.new(self)
@@ -75,8 +75,8 @@ class State < Puppet::Element
# we aren't actually comparing the states themselves, we're only
# comparing the "should" value with the "is" value
def insync?
- debug "%s value is '%s', should be '%s'" %
- [self,self.is.inspect,self.should.inspect]
+ #debug "%s value is '%s', should be '%s'" %
+ # [self,self.is.inspect,self.should.inspect]
self.is == self.should
end
#---------------------------------------------------------------
@@ -98,7 +98,7 @@ class State < Puppet::Element
@noop = false
end
tmp = @noop || self.parent.noop || Puppet[:noop] || false
- debug "noop is %s" % tmp
+ #debug "noop is %s" % tmp
return tmp
end
#---------------------------------------------------------------