No validation found exception is raised when group or category or product is defined
When executing validations by group or category or product, no validations execute and the message 'No validations found is displayed'. The condition has been updated, so the exception is raised properly. Resolves: rhbz#2185881 Signed-off-by: Veronika Fisarova <vfisarov@redhat.com> Change-Id: Icc1d4b83774c6374743f42d22970acea7f2eeb9c
This commit is contained in:
parent
136827b8fe
commit
72134198cb
@ -525,6 +525,10 @@ class ValidationActions:
|
||||
validations_dir = (validations_dir if validations_dir
|
||||
else self.validation_path)
|
||||
group_playbooks = []
|
||||
|
||||
if not any((validation_name, group, category, product)):
|
||||
raise ValidationRunException("No validations found")
|
||||
|
||||
if group or category or product:
|
||||
self.log.debug(
|
||||
"Getting the validations list by:\n"
|
||||
@ -571,9 +575,6 @@ class ValidationActions:
|
||||
playbooks.extend(validation_playbooks)
|
||||
playbooks = list(set(playbooks))
|
||||
|
||||
else:
|
||||
raise ValidationRunException("No validations found")
|
||||
|
||||
log_path = v_utils.create_log_dir(self.log_path)
|
||||
|
||||
self.log.debug((
|
||||
|
Loading…
Reference in New Issue
Block a user