| Index: client/third_party/infra_libs/ts_mon/config.py
|
| diff --git a/client/third_party/infra_libs/ts_mon/config.py b/client/third_party/infra_libs/ts_mon/config.py
|
| index f78d5cea5369a63f3dcec9a098cc2f82e2b81bc0..51232b2ee72a36f09673caffa5308706682cc97b 100644
|
| --- a/client/third_party/infra_libs/ts_mon/config.py
|
| +++ b/client/third_party/infra_libs/ts_mon/config.py
|
| @@ -243,14 +243,15 @@ def process_argparse_options(args):
|
| project = url.netloc
|
| topic = url.path.strip('/')
|
| interface.state.global_monitor = monitors.PubSubMonitor(
|
| - credentials, project, topic, use_instrumented_http=True,
|
| - ca_certs=args.ts_mon_ca_certs)
|
| + monitors.CredentialFactory.from_string(credentials), project, topic,
|
| + use_instrumented_http=True, ca_certs=args.ts_mon_ca_certs)
|
| else:
|
| logging.error('ts_mon monitoring is disabled because credentials are not '
|
| 'available')
|
| elif endpoint.startswith('https://'):
|
| interface.state.global_monitor = monitors.HttpsMonitor(
|
| - endpoint, credentials, ca_certs=args.ts_mon_ca_certs)
|
| + endpoint, monitors.CredentialFactory.from_string(credentials),
|
| + ca_certs=args.ts_mon_ca_certs)
|
| elif endpoint.lower() == 'none':
|
| logging.info('ts_mon monitoring has been explicitly disabled')
|
| else:
|
|
|