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

Bug: use SNF_PROJECT header if provided

parent 99195746
......@@ -51,8 +51,8 @@ class SNFOCCIMiddleware(OCCIMiddleware):
snf_token = environ['HTTP_X_AUTH_TOKEN']
snf_project = environ.get(
snf_project = environ.get('HTTP_X_SNF_PROJECT') or environ[
print 'Project ID provided'
except KeyError:
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