validate: check custom repository config options

This adds missing configuration options when the 'custom'
 repository is used.

Signed-off-by: Jugwan Eom <zugwan@gmail.com>
pull/3924/head
Jugwan Eom 2019-01-21 08:08:39 +00:00 committed by Guillaume Abrioux
parent 4ae5ce399b
commit 6c4f48812a
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class ActionModule(ActionBase):
notario.validate(
host_vars, ceph_repository_dev, defined_keys=True)
if host_vars["ceph_repository"] == "custom":
notario.validate(host_vars, ceph_repository_custom, defined_keys=True)
# store these values because one must be defined
# and the validation method
# will need access to all three through the store
@ -253,6 +256,8 @@ ceph_repository_dev = (
("ceph_dev_sha1", types.string),
)
ceph_repository_custom = ("ceph_custom_repo", types.string)
ceph_repository_uca = (
("ceph_stable_repo_uca", types.string),
("ceph_stable_openstack_release_uca", types.string),