Commit be2421e6 authored by Francesco Pace's avatar Francesco Pace
Browse files

Fix validation of storage policies


Signed-off-by: default avatarFrancesco Pace <pace.francesco.g@gmail.com>
parent d7966968
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment