Default value of the constructor parameter

The default value of the validation_path parameter
is now handled properly, without unnecessary conditional.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I4cc16732ea9d98ec47c2dc616105944bdd6106f0
This commit is contained in:
Jiri Podivin 2021-06-15 15:57:37 +02:00
parent 4d1df7b0e7
commit 6e54ac6fc1
1 changed files with 3 additions and 3 deletions

View File

@ -40,10 +40,10 @@ class ValidationActions(object):
"""
def __init__(self, validation_path=None, group=None):
def __init__(self, validation_path=constants.ANSIBLE_VALIDATION_DIR,
group=None):
self.log = logging.getLogger(__name__ + ".ValidationActions")
self.validation_path = (validation_path if validation_path
else constants.ANSIBLE_VALIDATION_DIR)
self.validation_path = validation_path
def list_validations(self, group=None):
"""Get a list of the validations selected by group