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
fad50141
Commit
fad50141
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
luxi: Use serializer module instead of simplejson
Reviewed-by: iustinp
parent
071448fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/luxi.py
+3
-2
3 additions, 2 deletions
lib/luxi.py
with
3 additions
and
2 deletions
lib/luxi.py
+
3
−
2
View file @
fad50141
...
...
@@ -36,6 +36,7 @@ import time
import
errno
from
ganeti
import
opcodes
from
ganeti
import
serializer
from
ganeti
import
constants
...
...
@@ -265,9 +266,9 @@ class Client(object):
"""
msg
=
{
KEY_REQUEST
:
request
,
KEY_DATA
:
data
}
result
=
self
.
transport
.
Call
(
s
implejson
.
dumps
(
msg
))
result
=
self
.
transport
.
Call
(
s
erializer
.
DumpJson
(
msg
,
indent
=
False
))
try
:
data
=
s
implejson
.
loads
(
result
)
data
=
s
erializer
.
LoadJson
(
result
)
except
Exception
,
err
:
raise
ProtocolError
(
"
Error while deserializing response: %s
"
%
str
(
err
))
if
(
not
isinstance
(
data
,
dict
)
or
...
...
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