]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Update install-ceph-gateway.rst 11432/head
authorHans van den Bogert <hansbogert@gmail.com>
Tue, 11 Oct 2016 16:34:23 +0000 (18:34 +0200)
committerHans van den Bogert <hansbogert@gmail.com>
Thu, 13 Oct 2016 20:33:52 +0000 (22:33 +0200)
Make the s3test.py script PIP-8 complaint, and more importantly  it no
longer fails because of the wrong indentation on the line of the
for-loop.

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
doc/install/install-ceph-gateway.rst

index 93db6430a55f72174a51bbcdecfebe8c49ced3c7..c8f8b5ea5bfa464dc76500d5866ef47f3fceaf8a 100644 (file)
@@ -510,24 +510,24 @@ Execute the following steps:
 
 #. Add the following contents to the file::
 
-    import boto
     import boto.s3.connection
 
     access_key = 'I0PJDPCIYZ665MW88W9R'
     secret_key = 'dxaXZ8U90SXydYzyS5ivamEP20hkLSUViiaR+ZDA'
     conn = boto.connect_s3(
-            aws_access_key_id = access_key,
-            aws_secret_access_key = secret_key,
-            host = '{hostname}', port = {port},
-            is_secure=False, calling_format = boto.s3.connection.OrdinaryCallingFormat(),
-            )
+            aws_access_key_id=access_key,
+            aws_secret_access_key=secret_key,
+            host='{hostname}', port={port},
+            is_secure=False, calling_format=boto.s3.connection.OrdinaryCallingFormat(),
+           )
 
     bucket = conn.create_bucket('my-new-bucket')
-        for bucket in conn.get_all_buckets():
-                print "{name} {created}".format(
-                        name = bucket.name,
-                        created = bucket.creation_date,
-     )
+    for bucket in conn.get_all_buckets():
+        print "{name} {created}".format(
+            name=bucket.name,
+            created=bucket.creation_date,
+        )
+
 
    Replace ``{hostname}`` with the hostname of the host where you have
    configured the gateway service i.e., the ``gateway host``. Replace {port}