Skip to content

Commit

Permalink
Making discovery use the cluster tag, not key_name, to identify the f…
Browse files Browse the repository at this point in the history
…og server (fixes #95)
  • Loading branch information
temujin9 committed Sep 13, 2012
1 parent 95c7c26 commit 3a02256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ironfan/discovery.rb
Expand Up @@ -56,7 +56,7 @@ def find_node(nd_name)
protected

def fog_servers
@fog_servers ||= Ironfan.fog_servers.select{|fs| fs.key_name == cluster_name.to_s && (fs.state != "terminated") }
@fog_servers ||= Ironfan.fog_servers.select{|fs| fs.tags['cluster'] == cluster_name.to_s && (fs.state != "terminated") }
end

# Walk the list of chef nodes and
Expand Down

0 comments on commit 3a02256

Please sign in to comment.