mirror of https://github.com/apache/jclouds.git
Fixed nodes-with-tag. Added nodes-with-details.
This commit is contained in:
parent
37aa405b0a
commit
86f8818ee8
|
@ -123,7 +123,7 @@ See http://code.google.com/p/jclouds for details."
|
|||
|
||||
(defn nodes-with-tag
|
||||
[#^String tag #^ComputeService compute]
|
||||
(seq (.listNodesMatching compute (NodePredicates/withTag tag))))
|
||||
(seq (.listNodesDetailsMatching compute (NodePredicates/withTag tag))))
|
||||
|
||||
(defn nodes
|
||||
"Retrieve the existing nodes for the compute context."
|
||||
|
@ -131,6 +131,12 @@ See http://code.google.com/p/jclouds for details."
|
|||
([#^ComputeService compute]
|
||||
(seq (.listNodes compute))))
|
||||
|
||||
(defn nodes-with-details
|
||||
"Retrieve the existing nodes for the compute context."
|
||||
([] (nodes *compute*))
|
||||
([#^ComputeService compute]
|
||||
(seq (.listNodesDetailsMatching compute (NodePredicates/all)))))
|
||||
|
||||
(defn images
|
||||
"Retrieve the available images for the compute context."
|
||||
([] (images *compute*))
|
||||
|
|
Loading…
Reference in New Issue