]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't hardcode teuthology's git repo URL
authorZack Cerza <zack@cerza.org>
Fri, 20 Sep 2013 20:12:02 +0000 (15:12 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 20 Sep 2013 20:24:11 +0000 (15:24 -0500)
teuthology/queue.py

index 0fa336e595149e54eaa336ec6e7423cac9ea9f7e..155f2a333bc7e71b213b728e5dadcd665db5d7d4 100644 (file)
@@ -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),