Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe
main
Commits
be2421e6
Commit
be2421e6
authored
Mar 10, 2017
by
Francesco Pace
Browse files
Fix validation of storage policies
Signed-off-by:
Francesco Pace
<
pace.francesco.g@gmail.com
>
parent
d7966968
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_lib/applications.py
View file @
be2421e6
...
...
@@ -190,7 +190,7 @@ def _storage_plugin_check(data):
if
data
[
'name'
]
not
in
supported_plugins
:
raise
InvalidApplicationDescription
(
msg
=
"Storage plugin ({}) not supported. {}"
.
format
(
data
[
'name'
],
supported_plugins
))
supported_policies
=
[
'platinum, gold, silver, bronze'
]
supported_policies
=
[
'platinum
'
,
'
gold
'
,
'
silver
'
,
'
bronze'
]
if
data
[
'policy'
]
not
in
supported_policies
:
raise
InvalidApplicationDescription
(
msg
=
"Policy ({}) not supported. {}"
.
format
(
data
[
'policy'
],
supported_policies
))
...
...
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