Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
0ae13ffb
Commit
0ae13ffb
authored
Jul 13, 2011
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement Minimal backward compatibility for stored data
This allows reuse previous proxy.db created with XML code.
parent
1a9fda39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
slapos/proxy/views.py
slapos/proxy/views.py
+5
-1
No files found.
slapos/proxy/views.py
View file @
0ae13ffb
...
...
@@ -39,7 +39,11 @@ def partitiondict2partition(partition):
# XXX-Cedric : change from partition['xml'] to partition['json']
parameter_dict
=
dict
()
if
partition
[
'xml'
]:
try
:
parameter_dict
=
json
.
loads
(
partition
[
'xml'
])
except
ValueError
:
# Backward compatility to old storage data.
parameter_dict
=
xml2dict
(
partition
[
'xml'
])
slap_partition
[
'parameter_dict'
]
=
parameter_dict
address_list
=
[]
#XXX-Cedric : I do not understand the query. It is unclear what is partition['reference'], is it computer_partition_id or partition_reference?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment