]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use the ceph_branch if suite_branch isn't found
authorZack Cerza <zack@cerza.org>
Fri, 11 Jul 2014 19:06:21 +0000 (13:06 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 11 Jul 2014 19:06:21 +0000 (13:06 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/worker.py

index 2dac400e6da976236a1f4096a3f7e0b0c9c61124..75def495cf76373306795ec0cf45a38f3c47c90c 100644 (file)
@@ -191,7 +191,9 @@ def main(ctx):
 
         try:
             teuth_path = fetch_teuthology_branch(branch=teuthology_branch)
-            suite_path = fetch_qa_suite(job_config['suite_branch'])
+            ceph_branch = job_config['branch']
+            suite_branch = job_config.get('suite_branch', ceph_branch)
+            suite_path = fetch_qa_suite(suite_branch)
         except BranchNotFoundError:
             log.exception(
                 "Branch not found; throwing job away")