Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Levin Zimmermann
slapos
Commits
1d3fe77b
Commit
1d3fe77b
authored
13 years ago
by
Łukasz Nowak
Browse files
Options
Download
Email Patches
Plain Diff
Inform in case of malformed json.
parent
81203b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
slapos/recipe/generate_erp5_tidstorage.py
slapos/recipe/generate_erp5_tidstorage.py
+3
-0
No files found.
slapos/recipe/generate_erp5_tidstorage.py
View file @
1d3fe77b
...
...
@@ -57,6 +57,9 @@ class Recipe(GenericSlapRecipe):
known_tid_storage_identifier_dict
=
{}
snippet_zeo
=
open
(
self
.
options
[
'snippet-zeo'
]).
read
()
for
zeo_id
,
zeo_configuration_list
in
json_data
[
'zeo'
].
iteritems
():
if
not
type
(
zeo_configuration_list
)
in
(
type
([]),
type
(
set
()),
type
(())):
raise
ValueError
(
'%s passed in json is not a list, json: %s.'
%
(
zeo_configuration_list
,
json_data
))
storage_list
=
[]
a
=
storage_list
.
append
for
zeo_slave
in
zeo_configuration_list
:
...
...
This diff is collapsed.
Click to expand it.
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