]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add config.ceph_git_base_url
authorZack Cerza <zack@cerza.org>
Fri, 20 Sep 2013 19:38:01 +0000 (14:38 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 20 Sep 2013 19:38:01 +0000 (14:38 -0500)
teuthology/config.py

index 8757949af77acdf4251126f741f3f04f63cb9036..b69e64cc326f5b33278d0eddac31167ef05166e5 100644 (file)
@@ -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):