]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task.internal: Fix import of get_builder_project 1819/head
authorZack Cerza <zack@redhat.com>
Wed, 22 Mar 2023 15:59:20 +0000 (09:59 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 22 Mar 2023 15:59:20 +0000 (09:59 -0600)
This is another problematic circular import.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/internal/__init__.py

index 0fb5b203deb03abeb3fc62a469352dbbec3da1b6..8fc442d6aa498a64d3a431a5615f3c9a2bccc84f 100644 (file)
@@ -17,8 +17,7 @@ import re
 import humanfriendly
 
 import teuthology.lock.ops
-from teuthology import misc
-from teuthology.packaging import get_builder_project
+from teuthology import misc, packaging
 from teuthology import report
 from teuthology.config import config as teuth_config
 from teuthology.exceptions import ConfigError, VersionNotFoundError
@@ -89,7 +88,7 @@ def check_packages(ctx, config):
     # We can only do this check if there are a defined sha1 and os_type
     # in the job config.
     if os_type and sha1:
-        package = get_builder_project()("ceph", ctx.config)
+        package = packaging.get_builder_project()("ceph", ctx.config)
         template = "Checking packages for os_type '{os}', " \
             "flavor '{flav}' and ceph hash '{ver}'"
         log.info(