]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't call get_branch_info() for master branches 473/head
authorZack Cerza <zack@redhat.com>
Thu, 23 Apr 2015 23:05:31 +0000 (17:05 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 23 Apr 2015 23:05:31 +0000 (17:05 -0600)
We're hitting the github API rate limit; if master doesn't exist we lose
anyway

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

index e05314f8c04280c00cc1268622f5e1b77e07a825..feb143c5450687b972134894eea5bda9d291e44f 100644 (file)
@@ -195,7 +195,7 @@ def create_initial_config(suite, suite_branch, ceph_branch, teuthology_branch,
             ver=ceph_hash), name)
     log.info("ceph version: {ver}".format(ver=ceph_version))
 
-    if teuthology_branch:
+    if teuthology_branch and teuthology_branch != 'master':
         if not get_branch_info('teuthology', teuthology_branch):
             exc = BranchNotFoundError(teuthology_branch, 'teuthology.git')
             schedule_fail(message=str(exc), name=name)
@@ -209,7 +209,7 @@ def create_initial_config(suite, suite_branch, ceph_branch, teuthology_branch,
             teuthology_branch = 'master'
     log.info("teuthology branch: %s", teuthology_branch)
 
-    if suite_branch:
+    if suite_branch and suite_branch != 'master':
         if not get_branch_info('ceph-qa-suite', suite_branch):
             exc = BranchNotFoundError(suite_branch, 'ceph-qa-suite.git')
             schedule_fail(message=str(exc), name=name)