Commit 5b8ea76f authored by Stavros Sachtouris's avatar Stavros Sachtouris

Bug: use SNF_PROJECT header if provided

parent 99195746
...@@ -51,8 +51,8 @@ class SNFOCCIMiddleware(OCCIMiddleware): ...@@ -51,8 +51,8 @@ class SNFOCCIMiddleware(OCCIMiddleware):
snf_token = environ['HTTP_X_AUTH_TOKEN'] snf_token = environ['HTTP_X_AUTH_TOKEN']
try: try:
snf_project = environ.get( snf_project = environ.get('HTTP_X_SNF_PROJECT') or environ[
'HTTP_X_SNF_PROJECT', environ['HTTP_X_PROJECT_ID']) 'HTTP_X_PROJECT_ID']
print 'Project ID provided' print 'Project ID provided'
except KeyError: except KeyError:
print "No project header, ask Astakos for project ID" print "No project header, ask Astakos for project ID"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment