Clean up remaining references to TROVE_URL

Replaced last remaining reference to TROVE_URL in python-troveclient.
Currently the user along with OS_URL , or TROVE_URL , is used as part
of a hash for a unique directory for the bash completion cache. Since
I'm not sure if there is a reason why the legacy URLs are used here,
I've replaced TROVE_URL with NOVA_URL instead of OS_AUTH_URL which
might be more appropriate for this purpose.

Change-Id: Id30aeae992aecba3c1fbe53c2ce421157410ca20
Closes-Bug: #1238282
This commit is contained in:
Alex Tomic
2015-03-05 11:30:19 +01:00
parent ebcc41d179
commit 88a516dc62

View File

@@ -125,7 +125,7 @@ class Manager(utils.HookableMixin):
# NOTE(sirp): Keep separate UUID caches for each username + endpoint # NOTE(sirp): Keep separate UUID caches for each username + endpoint
# pair # pair
username = utils.env('OS_USERNAME', 'TROVE_USERNAME') username = utils.env('OS_USERNAME', 'TROVE_USERNAME')
url = utils.env('OS_URL', 'TROVE_URL') url = utils.env('OS_URL', 'NOVA_URL')
uniqifier = hashlib.md5(username.encode('utf-8') + uniqifier = hashlib.md5(username.encode('utf-8') +
url.encode('utf-8')).hexdigest() url.encode('utf-8')).hexdigest()