Skip to content

Commit

Permalink
Switch from jclouds/node-tag (removed in beta 9), and fix use of :env…
Browse files Browse the repository at this point in the history
…ironment at the service level
  • Loading branch information
hugoduncan committed Mar 9, 2011
1 parent 47a9c0c commit 8db4adb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pallet/compute/jclouds.clj
Expand Up @@ -430,10 +430,11 @@
writer
(format
"%14s\t %s %s\n\t\t %s\n\t\t %s\n\t\t public: %s private: %s"
(jclouds/node-tag node)
(jclouds/tag node)
(apply str (interpose "." (map location-string (node-locations node))))
(let [location (.getLocation node)]
(when (and location (not (= (.getDescription location) (.getId location))))
(when (and location
(not (= (.getDescription location) (.getId location))))
(.getDescription location)))
(os-string (.getOperatingSystem node))
(.getState node)
Expand Down Expand Up @@ -467,7 +468,9 @@
:or {extensions (default-jclouds-extensions provider)}
:as options}]
(logging/info (format "extensions %s" (pr-str extensions)))
(let [options (dissoc options :identity :credential :extensions :blobstore)]
(let [options (dissoc
options
:identity :credential :extensions :blobstore :environment)]
(JcloudsService.
(apply
jclouds/compute-service
Expand Down

0 comments on commit 8db4adb

Please sign in to comment.