]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
fix import and iterkeys to keys
authorrakeshgm <rakeshgm@redhat.com>
Wed, 13 May 2020 16:41:33 +0000 (22:11 +0530)
committerrakeshgm <rakeshgm@redhat.com>
Wed, 13 May 2020 16:41:33 +0000 (22:11 +0530)
Signed-off-by: rakeshgm <rakeshgm@redhat.com>
teuthology/task/internal/__init__.py
teuthology/task/internal/redhat.py

index 2c758bf08e38b027e2abc867f989a4194b90778d..387fc07e16285d30e4c93bc04d91fcd2d1274d23 100644 (file)
@@ -19,7 +19,7 @@ from teuthology.config import config as teuth_config
 from teuthology.exceptions import VersionNotFoundError
 from teuthology.job_status import get_status, set_status
 from teuthology.orchestra import cluster, remote, run
-
+from .redhat import setup_cdn_repo, setup_base_repo, setup_additional_repo, setup_stage_cdn # noqa
 log = logging.getLogger(__name__)
 
 
index 99929110d982f12b73b241c396dc370d235a350d..996aa29d27c1604a5902f1fcfa801a75cb03b966 100644 (file)
@@ -24,7 +24,7 @@ def setup_stage_cdn(ctx, config):
         raise ConfigError("Provide rhbuild attribute")
     teuthconfig.rhbuild = str(rhbuild)
     with parallel() as p:
-        for remote in ctx.cluster.remotes.iterkeys():
+        for remote in ctx.cluster.remotes.keys():
             if remote.os.name == 'rhel':
                 log.info("subscribing stage cdn on : %s", remote.shortname)
                 p.spawn(_subscribe_stage_cdn, remote)
@@ -32,7 +32,7 @@ def setup_stage_cdn(ctx, config):
         yield
     finally:
         with parallel() as p:
-            for remote in ctx.cluster.remotes.iterkeys():
+            for remote in ctx.cluster.remotes.keys():
                 p.spawn(_unsubscribe_stage_cdn, remote)