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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user