mask X-Auth-Key for log_curl_request

We only mask the X-Auth-Token, but leave X-Auth-Key uncoverd, it
needs to be fixed.

Change-Id: I99dfcbe87ac33e4b1180511f5aba88b6c7be6a50
This commit is contained in:
ZhiQiang Fan 2015-11-18 10:31:40 -07:00
parent 901652e4f8
commit 0057e9d5f8
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class HTTPClient(object):
curl = ['curl -i -X %s' % method]
for (key, value) in kwargs['headers'].items():
if key == 'X-Auth-Token':
if key in ('X-Auth-Token', 'X-Auth-Key'):
value = '*****'
header = '-H \'%s: %s\'' % (strutils.safe_decode(key),
strutils.safe_decode(value))