Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Update install-ceph-gateway.rst #11432

Merged
merged 1 commit into from Oct 18, 2016
Merged

Conversation

hansbogert
Copy link
Contributor

@hansbogert hansbogert commented Oct 11, 2016

Make the s3test.py script PIP-8 compliant, and more importantly it no longer fails because of the wrong indentation on the line of the for-loop

@@ -510,24 +510,24 @@ Execute the following steps:

#. Add the following contents to the file::

import boto
Copy link
Contributor

@tchaikov tchaikov Oct 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we should remove import boto. as boto.connect_s3(...) will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's superfluous. I checked it btw, and it works. I used PyCharm which says it's an unused import. If you insist we can easily put it back. My main gripe is with the fact that the script simply does not run when you copy paste it, and I've been burnt by it twice now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hansbogert. okay, i trust you. but how come python knows what boto is without this statement. weird...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't really stand it as well so I looked it up. connect_s3 is defined in the __init__.py of top level of the boto package, which gets read even when you import a subpackage like boto.s3.connection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, do I need to sign when I commit something like this? I am not familiar with the linux kernel's process of signage, which you guys seem to be following.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hansbogert ahh, that explains. =)

you don't need to sign an agreement to contribute to Ceph. all you need to do is to follow https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#signing-contributions . in other words, please put this line at the end of your commit message.

Signed-off-by: Hans van den Bogert <your mail address here>

@hansbogert
Copy link
Contributor Author

There is one error with the automated tests. Unlikely this is of my doing, but should I rebase?

@tchaikov
Copy link
Contributor

tchaikov commented Oct 13, 2016

@hansbogert no, it's a known issue. and the last thing, could you prefix the title of your commit message with the subcomponent your are changing ? see https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#preparing-and-sending-patches, in your case, it would be "doc: ".

@tchaikov tchaikov self-assigned this Oct 13, 2016
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>
@hansbogert
Copy link
Contributor Author

Well, this trivial patch served as good pilot for contributing to Ceph. Hope all is well now.

@theanalyst theanalyst changed the title Update install-ceph-gateway.rst doc: Update install-ceph-gateway.rst Oct 14, 2016
@tchaikov tchaikov merged commit c5ee3b5 into ceph:master Oct 18, 2016
@hansbogert hansbogert deleted the patch-3 branch November 20, 2016 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants