Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
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-ganeti
Commits
7a8f64da
Commit
7a8f64da
authored
16 years ago
by
Oleksiy Mishchenko
Browse files
Options
Downloads
Patches
Plain Diff
Pass request headers in to RAPI handlers.
Reviewed-by: iustinp
parent
86d9d3bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemons/ganeti-rapi
+1
-1
1 addition, 1 deletion
daemons/ganeti-rapi
lib/rapi/baserlib.py
+2
-2
2 additions, 2 deletions
lib/rapi/baserlib.py
with
3 additions
and
3 deletions
daemons/ganeti-rapi
+
1
−
1
View file @
7a8f64da
...
...
@@ -50,7 +50,7 @@ class RemoteApiHttpServer(http.HttpServer):
"""
(
HandlerClass
,
items
,
args
)
=
self
.
_resmap
.
getController
(
req
.
request_path
)
handler
=
HandlerClass
(
items
,
args
,
req
.
request_post_data
)
handler
=
HandlerClass
(
items
,
args
,
req
)
method
=
req
.
request_method
.
upper
()
try
:
...
...
This diff is collapsed.
Click to expand it.
lib/rapi/baserlib.py
+
2
−
2
View file @
7a8f64da
...
...
@@ -126,7 +126,7 @@ class R_Generic(object):
"""
Generic class for resources.
"""
def
__init__
(
self
,
items
,
queryargs
,
post_data
):
def
__init__
(
self
,
items
,
queryargs
,
req
):
"""
Generic resource constructor.
Args:
...
...
@@ -136,7 +136,7 @@ class R_Generic(object):
"""
self
.
items
=
items
self
.
queryargs
=
queryargs
self
.
post_data
=
post_data
self
.
req
=
req
self
.
sn
=
None
def
getSerialNumber
(
self
):
...
...
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