Redact password from opendaylight client logging

The opendaylight client is printing debug that can potentially contain
the user password. This should be redacted for security.

Change-Id: Id07b8fc6bc63dc6bb799c4489b938253c5e15476
Closes-Bug: #1634907
This commit is contained in:
Paul Bourke 2016-10-19 14:51:10 +01:00
parent 97183a872b
commit 9df464267b

View File

@ -199,8 +199,7 @@ class Client(object):
else:
curl_command.append('--digest ')
curl_command.append('--user "%s":"%s" ' % (auth_class.username,
auth_class.password))
curl_command.append('--user "%s":"***" ' % auth_class.username)
for name, value in six.iteritems(self._req_params['headers']):
curl_command.append('-H "%s: %s" ' % (name, value))