You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by qu...@apache.org on 2018/03/30 05:43:28 UTC
libcloud git commit: LIBCLOUD-986: Fix S3 iteration without prefix
Repository: libcloud
Updated Branches:
refs/heads/trunk 9ffc89c6d -> ed0406043
LIBCLOUD-986: Fix S3 iteration without prefix
Closes #1194
Signed-off-by: Quentin Pradet <qu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/ed040604
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ed040604
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ed040604
Branch: refs/heads/trunk
Commit: ed0406043e438e0eeeb7e94dbc7aa0d65c0b8720
Parents: 9ffc89c
Author: jhawk <jh...@peaxy.net>
Authored: Fri Mar 23 10:34:03 2018 -0700
Committer: Quentin Pradet <qu...@apache.org>
Committed: Fri Mar 30 09:42:54 2018 +0400
----------------------------------------------------------------------
libcloud/storage/drivers/azure_blobs.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/ed040604/libcloud/storage/drivers/azure_blobs.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/azure_blobs.py b/libcloud/storage/drivers/azure_blobs.py
index 2475793..a53f6ac 100644
--- a/libcloud/storage/drivers/azure_blobs.py
+++ b/libcloud/storage/drivers/azure_blobs.py
@@ -385,12 +385,14 @@ class AzureBlobsStorageDriver(StorageDriver):
"""
@inherits: :class:`StorageDriver.iterate_container_objects`
"""
- params = {'prefix': ex_prefix,
- 'restype': 'container',
+ params = {'restype': 'container',
'comp': 'list',
'maxresults': RESPONSES_PER_REQUEST,
'include': 'metadata'}
+ if ex_prefix:
+ params['prefix'] = ex_prefix
+
container_path = self._get_container_path(container)
while True: