mirror of https://github.com/apache/jclouds.git
change test to not use InetAddress.getLocalhost() as this breaks on cloudbees
This commit is contained in:
parent
ef2c2277d0
commit
6b4a431665
|
@ -88,7 +88,7 @@ list, Alan Dipert and MeikelBrandmeyer."
|
||||||
|
|
||||||
(defn localhost? [node]
|
(defn localhost? [node]
|
||||||
"Returns true if the localhost address is in the node's private ips"
|
"Returns true if the localhost address is in the node's private ips"
|
||||||
(seq? (some #(= (InetAddress/getLocalHost) %) (private-ips node))))
|
(seq? (some #(= "localhost" %) (private-ips node))))
|
||||||
|
|
||||||
(deftest compound-predicate-test
|
(deftest compound-predicate-test
|
||||||
(is (create-node *compute* "my-group" (build-template *compute* {})))
|
(is (create-node *compute* "my-group" (build-template *compute* {})))
|
||||||
|
|
Loading…
Reference in New Issue