From ce77bed3670fab7a62763ca5f72a753c57aad7f9 Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Thu, 3 Jun 2021 14:29:21 +0200 Subject: [PATCH] Overriding the log path argument for tripleoclient cli Depends-On: https://review.opendev.org/c/openstack/cliff/+/794792 Depends-On: https://review.opendev.org/c/openstack/requirements/+/803761 Signed-off-by: Jiri Podivin Change-Id: I0d1f5f7fbd35d69ec9f0e44aab0831e0de875295 --- tripleoclient/v1/tripleo_validator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tripleoclient/v1/tripleo_validator.py b/tripleoclient/v1/tripleo_validator.py index d7c5ebae8..1601d7c0d 100644 --- a/tripleoclient/v1/tripleo_validator.py +++ b/tripleoclient/v1/tripleo_validator.py @@ -13,6 +13,7 @@ # under the License. # import logging +from tripleoclient import constants from validations_libs.cli.history import GetHistory from validations_libs.cli.history import ListHistory @@ -73,6 +74,8 @@ class TripleOValidatorRun(Run): def get_parser(self, parser): parser = super(TripleOValidatorRun, self).get_parser(parser) + parser.set_defaults( + validations_log_dir=constants.VALIDATIONS_LOG_BASEDIR) return parser @@ -83,6 +86,8 @@ class TripleOValidatorShowHistory(ListHistory): def get_parser(self, parser): parser = super(TripleOValidatorShowHistory, self).get_parser(parser) + parser.set_defaults( + validations_log_dir=constants.VALIDATIONS_LOG_BASEDIR) return parser @@ -93,4 +98,6 @@ class TripleOValidatorShowRun(GetHistory): def get_parser(self, parser): parser = super(TripleOValidatorShowRun, self).get_parser(parser) + parser.set_defaults( + validations_log_dir=constants.VALIDATIONS_LOG_BASEDIR) return parser