diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-13 17:13:09 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-13 17:13:09 +0000 |
commit | 89d37f612bec255d9a966729680409cceb728e9c (patch) | |
tree | 247e1998962da2fe23bdba404b8cce8b56233216 /lib/puppet/statechange.rb | |
parent | 96388cbd3b1a88a978e176b30b52d7753b70236b (diff) | |
download | puppet-89d37f612bec255d9a966729680409cceb728e9c.tar.gz puppet-89d37f612bec255d9a966729680409cceb728e9c.tar.xz puppet-89d37f612bec255d9a966729680409cceb728e9c.zip |
Fixing some problems with cron tab management, and creating Puppet::Util.{u,g}id methods.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@898 980ebf18-57e1-0310-9a29-db15c13687c0
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 |