diff options
Diffstat (limited to 'lib/puppet/statechange.rb')
-rw-r--r-- | lib/puppet/statechange.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/statechange.rb b/lib/puppet/statechange.rb index 8adbb5d91..b260f0bd3 100644 --- a/lib/puppet/statechange.rb +++ b/lib/puppet/statechange.rb @@ -12,7 +12,7 @@ module Puppet @path = [state.path,"change"].flatten @is = state.is - if state.is == state.should + if state.insync? raise Puppet::Error.new( "Tried to create a change for in-sync state %s" % state.name ) @@ -25,8 +25,8 @@ module Puppet #--------------------------------------------------------------- def go - if @state.is == @state.should - @state.info "already in sync" + if @state.insync? + @state.info "Already in sync" return nil end |