Skip to content
Browse files

Making discovery use the cluster tag, not key_name, to identify the f…

…og server (fixes #95)
  • Loading branch information...
1 parent 95c7c26 commit 3a022569b2ac94ca16ca42e51b9e22e4f886ea9a @temujin9 temujin9 committed Sep 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ironfan/discovery.rb
View
2 lib/ironfan/discovery.rb
@@ -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

0 comments on commit 3a02256

Please sign in to comment.
Something went wrong with that request. Please try again.