From: Zack Cerza Date: Fri, 20 Sep 2013 20:12:02 +0000 (-0500) Subject: Don't hardcode teuthology's git repo URL X-Git-Tag: 1.1.0~1860^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d1deb6d579fc0e862ec4fb84596fed1827cd7af8;p=teuthology.git Don't hardcode teuthology's git repo URL --- diff --git a/teuthology/queue.py b/teuthology/queue.py index 0fa336e59..155f2a333 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -11,13 +11,11 @@ import yaml import beanstalkc -from teuthology import safepath +from .config import config as teuth_config +from . import safepath log = logging.getLogger(__name__) -#teuthology_git_upstream = "https://github.com/ceph/teuthology.git" -teuthology_git_upstream = "git://ceph.com/teuthology.git" - # simple flock class class filelock(object): def __init__(self, fn): @@ -51,6 +49,7 @@ def fetch_teuthology_branch(path, branch='master'): try: if not os.path.isdir(path): log.info("Cloning %s from upstream", branch) + teuthology_git_upstream = teuth_config.ceph_git_base_url + 'teuthology.git' log.info( subprocess.check_output(('git', 'clone', '--branch', branch, teuthology_git_upstream, path),