From: rakeshgm Date: Wed, 13 May 2020 16:41:33 +0000 (+0530) Subject: fix import and iterkeys to keys X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=af3140c156e4acc7b34e5dbbbc40ef2f733466e2;p=teuthology.git fix import and iterkeys to keys Signed-off-by: rakeshgm --- diff --git a/teuthology/task/internal/__init__.py b/teuthology/task/internal/__init__.py index 2c758bf08..387fc07e1 100644 --- a/teuthology/task/internal/__init__.py +++ b/teuthology/task/internal/__init__.py @@ -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__) diff --git a/teuthology/task/internal/redhat.py b/teuthology/task/internal/redhat.py index 99929110d..996aa29d2 100644 --- a/teuthology/task/internal/redhat.py +++ b/teuthology/task/internal/redhat.py @@ -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)