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 <jpodivin@redhat.com>
Change-Id: I0d1f5f7fbd35d69ec9f0e44aab0831e0de875295
This commit is contained in:
Jiri Podivin 2021-06-03 14:29:21 +02:00
parent 72cba8790d
commit 812681dc6b
2 changed files with 8 additions and 1 deletions

View File

@ -15,5 +15,5 @@ osc-lib>=2.3.0 # Apache-2.0
tripleo-common>=16.0.0 # Apache-2.0
cryptography>=2.1 # BSD/Apache-2.0
ansible-runner>=1.4.5 # Apache 2.0
validations-libs>=1.0.4 # Apache-2.0
validations-libs>=1.2.0 # Apache-2.0
openstacksdk>=0.48.0 # Apache-2.0

View File

@ -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