From: Zack Cerza Date: Wed, 21 Aug 2013 15:27:51 +0000 (-0500) Subject: Make client a global variable X-Git-Tag: 1.1.0~1953^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44%2Fhead;p=teuthology.git Make client a global variable --- diff --git a/teuthology/sentry.py b/teuthology/sentry.py index ce17520ba..ecbd56fb2 100644 --- a/teuthology/sentry.py +++ b/teuthology/sentry.py @@ -3,6 +3,7 @@ from raven import Client client = None def get_client(ctx): + global client if client: return client dsn = ctx.teuthology_config.get('sentry_dsn')