Workaround for HOME env variable expansion problem in validations-libs 1.2.0
This workaround is for keeping support for validations-libs 1.2.0 while waiting for true issues fixes[1][2] are released. [1] https://review.opendev.org/c/openstack/validations-libs/+/797008 [2] https://review.opendev.org/c/openstack/requirements/+/797011 [3] https://review.opendev.org/c/x/tobiko/+/797036 Change-Id: If1706269f478db18fd9c99d0c9c227c102264fd8
This commit is contained in:
parent
46cba5ab1f
commit
e6f8872aca
@ -13,14 +13,21 @@
|
||||
# under the License.
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
|
||||
from oslo_log import log
|
||||
from validations_libs import validation_actions
|
||||
|
||||
from tobiko.tripleo import overcloud
|
||||
from tobiko.openstack import topology
|
||||
from tobiko.shell import sh
|
||||
|
||||
|
||||
# Workaround for validations-libs 1.2.0 issue
|
||||
# https://opendev.org/openstack/validations-libs/src/tag/1.2.0/validations_libs/constants.py#L25
|
||||
os.environ.setdefault('HOME', os.path.expanduser('~'))
|
||||
from validations_libs import validation_actions # noqa
|
||||
|
||||
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user