Skip to content

Commit

Permalink
Fixing relevant? semantics in cluster_stop and cluster_start
Browse files Browse the repository at this point in the history
  • Loading branch information
temujin9 committed Feb 27, 2013
1 parent f6d15b4 commit 1b647d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/chef/knife/cluster_start.rb
Expand Up @@ -23,8 +23,8 @@ class Knife
class ClusterStart < Ironfan::Script class ClusterStart < Ironfan::Script
import_banner_and_options(Ironfan::Script) import_banner_and_options(Ironfan::Script)


def relevant?(server) def relevant?(computer)
(not bogus?) && stopped? (not computer.bogus?) && computer.stopped?
end end


def perform_execution(target) def perform_execution(target)
Expand Down
4 changes: 2 additions & 2 deletions lib/chef/knife/cluster_stop.rb
Expand Up @@ -23,8 +23,8 @@ class Knife
class ClusterStop < Ironfan::Script class ClusterStop < Ironfan::Script
import_banner_and_options(Ironfan::Script) import_banner_and_options(Ironfan::Script)


def relevant?(server) def relevant?(computer)
(not bogus?) && server.running? (not computer.bogus?) && computer.running?
end end


def perform_execution(target) def perform_execution(target)
Expand Down

0 comments on commit 1b647d6

Please sign in to comment.