Skip to content

Commit

Permalink
Fix branch selection logic
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <zack@redhat.com>
  • Loading branch information
zmc committed Apr 24, 2015
1 parent 3ac42e0 commit 074741e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teuthology/suite.py
Expand Up @@ -199,7 +199,7 @@ def create_initial_config(suite, suite_branch, ceph_branch, teuthology_branch,
if not get_branch_info('teuthology', teuthology_branch):
exc = BranchNotFoundError(teuthology_branch, 'teuthology.git')
schedule_fail(message=str(exc), name=name)
else:
elif not teuthology_branch:
# Decide what branch of teuthology to use
if get_branch_info('teuthology', ceph_branch):
teuthology_branch = ceph_branch
Expand All @@ -213,7 +213,7 @@ def create_initial_config(suite, suite_branch, ceph_branch, teuthology_branch,
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)
else:
elif not suite_branch:
# Decide what branch of ceph-qa-suite to use
if get_branch_info('ceph-qa-suite', ceph_branch):
suite_branch = ceph_branch
Expand Down

0 comments on commit 074741e

Please sign in to comment.