Merge "noauth: only set token_info if set"

changes/89/518389/5
Zuul 2017-11-10 11:47:27 +00:00 committed by Gerrit Code Review
commit f690a94f26
1 changed files with 2 additions and 1 deletions

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