Browse Source

Merge "Refactor the groups property in Validation class."

changes/09/779509/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
125bbf01c7
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      validations_libs/validation.py

+ 1
- 5
validations_libs/validation.py View File

@ -219,11 +219,7 @@ class Validation(object):
['group1', 'group2']
"""
if self.has_metadata_dict:
groups = self.dict['vars']['metadata'].get('groups')
if groups:
return groups
else:
return []
return self.dict['vars']['metadata'].get('groups', [])
else:
raise NameError(
"No metadata found in validation {}".format(self.id)


Loading…
Cancel
Save