From: Zack Cerza Date: Thu, 23 Apr 2015 23:05:31 +0000 (-0600) Subject: Don't call get_branch_info() for master branches X-Git-Tag: 1.1.0~962^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F473%2Fhead;p=teuthology.git Don't call get_branch_info() for master branches We're hitting the github API rate limit; if master doesn't exist we lose anyway Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite.py b/teuthology/suite.py index e05314f8c..feb143c54 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -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)