Merge "NSX|V3: add request-id support"

This commit is contained in:
Zuul 2017-11-03 05:13:14 +00:00 committed by Gerrit Code Review
commit ca5368f072

View File

@ -129,7 +129,8 @@ NSX_V3_NON_VIF_PROFILE = 'nsx-default-switch-security-non-vif-profile'
def inject_headers():
ctx = context_utils.get_current()
if ctx:
return {'X-NSX-EUSER': ctx.__dict__.get('_project_id')}
return {'X-NSX-EUSER': ctx.__dict__.get('_project_id'),
'X-NSX-EREQID': ctx.__dict__.get('request_id')}
return {}