mirror of
https://github.com/ceph/ceph
synced 2024-12-25 04:43:17 +00:00
14 lines
235 B
Python
14 lines
235 B
Python
from raven import Client
|
|
|
|
client = None
|
|
|
|
def get_client(ctx):
|
|
global client
|
|
if client:
|
|
return client
|
|
dsn = ctx.teuthology_config.get('sentry_dsn')
|
|
if dsn:
|
|
client = Client(dsn=dsn)
|
|
return client
|
|
|