Setting default inventory path for VF interface with ooo client.

Resolves: rhbz#2050765

Depends-On: https://review.opendev.org/c/openstack/validations-libs/+/829502

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I9726c879da005b3a945d243e5c7bb67f42bf94ae
This commit is contained in:
Jiri Podivin 2022-02-14 16:24:53 +01:00 committed by mbu
parent dad628fb97
commit c42ee30017
1 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,8 @@
# under the License.
#
import logging
import os
from tripleoclient import constants
from validations_libs.cli.community import CommunityValidationInit
@ -75,7 +77,11 @@ class TripleOValidatorRun(Run):
def get_parser(self, parser):
parser = super(TripleOValidatorRun, self).get_parser(parser)
default = {'validation_log_dir': constants.VALIDATIONS_LOG_BASEDIR}
default = {
'validation_log_dir': constants.VALIDATIONS_LOG_BASEDIR,
'inventory': os.path.join(
parser.output_dir,
constants.TRIPLEO_STATIC_INVENTORY)}
parser.set_defaults(**default)
return parser