Fix map issues with Python3

Partially implements: blueprint python-3

Change-Id: Ia7dfc2a28c311a378ca5ada477d18a5b741782b2
This commit is contained in:
Hiroaki Kobayashi 2018-01-15 13:38:05 +09:00 committed by Pierre Riteau
parent 1ff88e8459
commit 600992d9bb
1 changed files with 1 additions and 1 deletions

View File

@ -35,5 +35,5 @@ def ctx_from_headers(headers):
service_catalog=service_catalog,
user_name=headers['X-User-Name'],
project_name=headers['X-Project-Name'],
roles=map(six.text_type.strip, headers['X-Roles'].split(',')),
roles=list(map(six.text_type.strip, headers['X-Roles'].split(','))),
)