From 76939ce389280d0d8ebbe5dfb4cce05f02e11fea Mon Sep 17 00:00:00 2001 From: Hans van den Bogert Date: Tue, 11 Oct 2016 18:34:23 +0200 Subject: [PATCH] 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 --- doc/install/install-ceph-gateway.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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} -- 2.47.3