Skip to content
Browse files

Only get IP addresses of running nodes in master-ip.

  • Loading branch information...
1 parent c94f7d7 commit c0baa07cd6e4ceaaa062769797bea6932fe6fdc4 @tbatchelli tbatchelli committed Jan 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/pallet_hadoop/node.clj
4 src/pallet_hadoop/node.clj
@@ -281,8 +281,8 @@
;; rebuild the cluster EC2 will report both running and terminated
;; nodes for quite a while.
(when-let [master-node (first
- (filter running?
- (tag-kwd (nodes-by-tag (nodes service)))))]
+ (tag-kwd (nodes-by-tag
+ (filter running? (nodes service)))))]
(case ip-type
:private (private-ip master-node)
:public (primary-ip master-node))))

0 comments on commit c0baa07

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