validate: adds a CEPH_RELEASES constant

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/2619/head
Andrew Schoen 2018-05-03 16:27:44 -05:00 committed by Guillaume Abrioux
parent d30a99c350
commit 890e265fd3
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@ from notario.decorators import optional
from notario.store import store as notario_store from notario.store import store as notario_store
CEPH_RELEASES = ['jewel', 'kraken', 'luminous', 'mimic']
class ActionModule(ActionBase): class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None): def run(self, tmp=None, task_vars=None):
@ -149,7 +152,7 @@ def validate_lvm_volumes(value):
def validate_ceph_stable_release(value): def validate_ceph_stable_release(value):
assert value in ['jewel', 'kraken', 'luminous', 'mimic'], "ceph_stable_release must be set to 'jewel', 'kraken', 'lumious' or 'mimic'" assert value in CEPH_RELEASES, "ceph_stable_release must be set to one of the following: %s" % ", ".join(CEPH_RELEASES)
def validate_rados_options(value): def validate_rados_options(value):