From 667c3ed03e445c2b251b602a24643d7b0af53307 Mon Sep 17 00:00:00 2001 From: Chas Emerick Date: Wed, 26 May 2010 00:04:30 -0400 Subject: [PATCH] fixed node.getId() usage in clojure ebs wrapper --- aws/core/src/main/clojure/org/jclouds/aws/ebs.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/core/src/main/clojure/org/jclouds/aws/ebs.clj b/aws/core/src/main/clojure/org/jclouds/aws/ebs.clj index ab1c5f2076..a79c4ad866 100644 --- a/aws/core/src/main/clojure/org/jclouds/aws/ebs.clj +++ b/aws/core/src/main/clojure/org/jclouds/aws/ebs.clj @@ -58,8 +58,8 @@ (instance? NodeMetadata v) (let [zone (compute/location v)] ; no easier way to go from zone -> region? (if (> (.indexOf zone "-") -1) - (subs zone 0 (-> zone count dec)) - zone)) + (subs zone 0 (-> zone count dec)) + zone)) :else default-region))) (defn get-volume-id @@ -186,7 +186,7 @@ (attach-volume some-node-instance :vol-45228a6d \"/dev/sdh\") (attach-volume some-node-instance some-volume-instance \"/dev/sdh\"))" ([#^NodeMetadata node volume device] - (attach-volume node (.getId node) (get-volume-id volume) device)) + (attach-volume node (.getProviderId node) (get-volume-id volume) device)) ([region instance-id volume-id device] (apply #(.attachVolumeInRegion (ebs-service) (get-region region) % %2 %3)