From 7310d04ae5097d84826aafc6087bd5ac07e54947 Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 11 Mar 2010 11:21:55 -0800 Subject: [PATCH] Use as-blobstore when listing blobs in clojure wrapper. Seems to be more forgiving and consistent this way. --- blobstore/src/main/clojure/org/jclouds/blobstore.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blobstore/src/main/clojure/org/jclouds/blobstore.clj b/blobstore/src/main/clojure/org/jclouds/blobstore.clj index 8e85b32e41..573e1a78f4 100644 --- a/blobstore/src/main/clojure/org/jclouds/blobstore.clj +++ b/blobstore/src/main/clojure/org/jclouds/blobstore.clj @@ -225,11 +225,11 @@ example: \"somecontainer\" \"some-dir\")) " ([blobstore container-name] - (.list (.getBlobStore blobstore) container-name )) + (.list (as-blobstore blobstore) container-name)) - ([blobstore container-name dir] - (.list (.getBlobStore blobstore) container-name - (.inDirectory (new ListContainerOptions) dir)))) + ([blobstore container-name prefix] + (.list (as-blobstore blobstore) container-name + (.inDirectory (new ListContainerOptions) prefix)))) (defn create-blob "Create an blob representing text data: