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 b37015ee1f
commit 7d416acbe8

View File

@ -42,10 +42,10 @@ class ValidationActions(object):
"""
def __init__(self, validation_path=None):
def __init__(self, validation_path=constants.ANSIBLE_VALIDATION_DIR):
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,
groups=None,