From: Hans van den Bogert Date: Tue, 11 Oct 2016 16:34:23 +0000 (+0200) Subject: doc: Update install-ceph-gateway.rst X-Git-Tag: v11.1.0~616^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=76939ce389280d0d8ebbe5dfb4cce05f02e11fea;p=ceph.git doc: Update install-ceph-gateway.rst 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 --- diff --git a/doc/install/install-ceph-gateway.rst b/doc/install/install-ceph-gateway.rst index 93db6430a55f..c8f8b5ea5bfa 100644 --- a/doc/install/install-ceph-gateway.rst +++ b/doc/install/install-ceph-gateway.rst @@ -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}