From 887946459a6c8ee3955b4773ec3c87b1bcbda8d8 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 23 Apr 2015 17:05:31 -0600 Subject: [PATCH] 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 --- teuthology/suite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3