[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:31:03 UTC 2013


The following commit has been merged in the master branch:
commit 58d5cd67f7cf97f10f6063a2076282ae2496673f
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Apr 16 14:36:46 2013 -0700

    Use GET instead of HEAD for CheckBucket so we can get redirections

diff --git a/euca2ools/commands/walrus/checkbucket.py b/euca2ools/commands/walrus/checkbucket.py
index 4d82508..71518a8 100644
--- a/euca2ools/commands/walrus/checkbucket.py
+++ b/euca2ools/commands/walrus/checkbucket.py
@@ -39,5 +39,8 @@ class CheckBucket(WalrusRequest):
     ARGS = [Arg('bucket', route_to=None, help='name of the bucket to check')]
 
     def preprocess(self):
-        self.method = 'HEAD'
+        # We use GET instead of HEAD so we can get redirections when we talk
+        # to the wrong region.
+        self.method = 'GET'
         self.path = self.args['bucket']
+        self.params['max-keys'] = 0

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list