summaryrefslogtreecommitdiff
path: root/kolla/image
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-10-07 05:53:37 +0000
committerGerrit Code Review <review@openstack.org>2022-10-07 05:53:37 +0000
commit35a28eb2092ca6aaae220c8f57a877af233d49cc (patch)
treed8ef01c7d0e1827f4ac1dc7378a2428e9921ff27 /kolla/image
parentcd08d9b54383252b90d9184c8ce63ed8c66c2418 (diff)
parente2c061ee63a701284bc2f6b1470d9d33a58e724c (diff)
downloadkolla-35a28eb2092ca6aaae220c8f57a877af233d49cc.tar.gz
kolla-35a28eb2092ca6aaae220c8f57a877af233d49cc.zip
Merge "do not play with PROJECT_ROOT in build.py"
Diffstat (limited to 'kolla/image')
-rwxr-xr-xkolla/image/build.py25
1 files changed, 5 insertions, 20 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 48fcf134e..6377ebe9d 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -13,35 +13,20 @@
import contextlib
import json
import logging
-import os
import queue
import shutil
import sys
import threading
import time
+from kolla.common import config as common_config
+from kolla.common import utils
+from kolla.image.kolla_worker import KollaWorker
+from kolla.image.utils import LOG
+from kolla.image.utils import Status
from oslo_config import cfg
-# NOTE(SamYaple): Update the search path to prefer PROJECT_ROOT as the source
-# of packages to import if we are using local tools instead of
-# pip installed kolla tools
-PROJECT_ROOT = os.path.abspath(os.path.join(
- os.path.dirname(os.path.realpath(__file__)), '../..'))
-if PROJECT_ROOT not in sys.path:
- sys.path.insert(0, PROJECT_ROOT)
-
-from kolla.common import config as common_config # noqa
-from kolla.common import utils # noqa
-from kolla.image.kolla_worker import KollaWorker # noqa
-from kolla.image.utils import LOG # noqa
-from kolla.image.utils import Status # noqa
-from kolla import exception # noqa
-from kolla.template import filters as jinja_filters # noqa
-from kolla.template import methods as jinja_methods # noqa
-from kolla import version # noqa
-
-
@contextlib.contextmanager
def join_many(threads):
try: