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

get_account_metadata does not clean key that contains UpperCase #602

Open
toopy opened this issue Feb 3, 2016 · 0 comments
Open

get_account_metadata does not clean key that contains UpperCase #602

toopy opened this issue Feb 3, 2016 · 0 comments

Comments

@toopy
Copy link

toopy commented Feb 3, 2016

cf.: https://github.com/rackspace/pyrax/blob/master/pyrax/object_storage.py#L914

If get_account_headers returns something like:

{'X_Account_Meta_Temp_Url_Key': 'XXXX'}

Then the returned value remains the same instead of:

{'temp_url_key': 'XXXX'}

I think this line should be ..:

cleaned = lowkey.replace(low_prefix, "").replace("-", "_")

.. and be covered by the tests (cf.: https://github.com/rackspace/pyrax/blob/master/tests/unit/test_object_storage.py#L829)

I hope to do a PR soon if not resolved sooner ;)

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

No branches or pull requests

1 participant