]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
updated config error exception w.r.t rhbuild 1442/head
authorsunilkumarn417 <sunnagar@redhat.com>
Tue, 7 Apr 2020 05:38:25 +0000 (11:08 +0530)
committersunilkumarn417 <sunnagar@redhat.com>
Tue, 7 Apr 2020 05:38:25 +0000 (11:08 +0530)
Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
teuthology/task/internal/redhat.py

index 047bbb8087d93f8ec8619e5ffbc079a7d12182a0..99929110d982f12b73b241c396dc370d235a350d 100644 (file)
@@ -9,7 +9,7 @@ from teuthology.config import config as teuthconfig
 from teuthology.parallel import parallel
 from teuthology.orchestra import run
 from teuthology.task.install.redhat import set_deb_repo
-from teuthology.exceptions import CommandFailedError
+from teuthology.exceptions import CommandFailedError, ConfigError
 
 log = logging.getLogger(__name__)
 
@@ -19,7 +19,9 @@ def setup_stage_cdn(ctx, config):
     """
     Configure internal stage cdn
     """
-    rhbuild = ctx.config.get('redhat').get('rhbuild', "3.x")
+    rhbuild = ctx.config.get('redhat').get('rhbuild')
+    if not rhbuild:
+        raise ConfigError("Provide rhbuild attribute")
     teuthconfig.rhbuild = str(rhbuild)
     with parallel() as p:
         for remote in ctx.cluster.remotes.iterkeys():