Merge "noauth: only set token_info if set"

This commit is contained in:
Zuul 2017-11-10 11:47:27 +00:00 committed by Gerrit Code Review
commit f690a94f26

View File

@ -66,8 +66,9 @@ class NoAuthProtocol(object):
'HTTP_X_AUTH_USER': username,
'HTTP_X_AUTH_KEY': 'unset',
'HTTP_X_AUTH_URL': 'url',
'keystone.token_info': self._token_info,
}
if self._token_info:
headers['keystone.token_info'] = self._token_info
return headers