Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-occi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-occi
Commits
5b8ea76f
Commit
5b8ea76f
authored
8 years ago
by
Stavros Sachtouris
Browse files
Options
Downloads
Patches
Plain Diff
Bug: use SNF_PROJECT header if provided
parent
99195746
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
soi/wsgi.py
+2
-2
2 additions, 2 deletions
soi/wsgi.py
with
2 additions
and
2 deletions
soi/wsgi.py
+
2
−
2
View file @
5b8ea76f
...
...
@@ -51,8 +51,8 @@ class SNFOCCIMiddleware(OCCIMiddleware):
snf_token
=
environ
[
'
HTTP_X_AUTH_TOKEN
'
]
try
:
snf_project
=
environ
.
get
(
'
HTTP_X_SNF_PROJECT
'
,
environ
[
'
HTTP_X_PROJECT_ID
'
]
)
snf_project
=
environ
.
get
(
'
HTTP_X_SNF_PROJECT
'
)
or
environ
[
'
HTTP_X_PROJECT_ID
'
]
print
'
Project ID provided
'
except
KeyError
:
print
"
No project header, ask Astakos for project ID
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment