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

when a request is made to a CDN endpoint there is no internalURL to use,... #231

Closed

Conversation

jobelenus
Copy link
Contributor

... we have to fall back to the publicURL. This was an oversight on my part with my first pull request --#229

And this is the fix

@@ -105,6 +105,8 @@ class CloudFilesConnection(OpenStackBaseConnection):

auth_url = AUTH_URL
_auth_version = '2.0'
INTERNAL_URL = 'internalURL'
Copy link
Member

Choose a reason for hiding this comment

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

Those attributes need better name.

On top of that, if they are upper case (constants) they should probably be stored on module level and not on class level.

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 was thinking about making them module level, but they only apply to the connection class.

@asfgit asfgit closed this in 34c3df4 Jan 30, 2014
@Kami
Copy link
Member

Kami commented Jan 30, 2014

Thanks for making those changes.

There were some lint issues which I have fixed and merged patch into trunk. Next time please run tox -e lint and make sure there are no lint issues.

@jobelenus
Copy link
Contributor Author

Ah thanks for that local command, I was always waiting for Travis to fail me :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants