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:
parent
b37015ee1f
commit
7d416acbe8
@ -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.log = logging.getLogger(__name__ + ".ValidationActions")
|
||||||
self.validation_path = (validation_path if validation_path
|
self.validation_path = validation_path
|
||||||
else constants.ANSIBLE_VALIDATION_DIR)
|
|
||||||
|
|
||||||
def list_validations(self,
|
def list_validations(self,
|
||||||
groups=None,
|
groups=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user