From 1600785d2daa9be955d5dc24802aa7727f86aede Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 20 Sep 2013 14:38:01 -0500 Subject: [PATCH] Add config.ceph_git_base_url --- teuthology/config.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/teuthology/config.py b/teuthology/config.py index 8757949af7..b69e64cc32 100644 --- a/teuthology/config.py +++ b/teuthology/config.py @@ -32,6 +32,17 @@ class _Config(object): """ return self.__conf.get('lock_server') + @property + def ceph_git_base_url(self): + """ + The base URL to use for ceph-related git repositories. + + Defaults to https://github.com/ceph/ + """ + base_url = self.__conf.get('ceph_git_base_url') + base_url = base_url or "https://github.com/ceph/" + return base_url + # This takes care of any and all of the rest. # If the parameter is defined, return it. Otherwise return None. def __getattr__(self, name): -- 2.39.5