Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: client/third_party/infra_libs/event_mon/router.py

Issue 2991803002: Update infra_libs to 1.1.15 / 0b44aba87c1c6538439df6d24a409870810747ab (Closed)
Patch Set: fix Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/third_party/infra_libs/event_mon/router.py
diff --git a/client/third_party/infra_libs/event_mon/router.py b/client/third_party/infra_libs/event_mon/router.py
index 437e1189c6804a1b694cf867a0e417610062001a..9469f8acd0434849fb1e96cea6e5a4cfdfd67e0e 100644
--- a/client/third_party/infra_libs/event_mon/router.py
+++ b/client/third_party/infra_libs/event_mon/router.py
@@ -202,23 +202,6 @@ class _HttpRouter(_Router):
self._dry_run = dry_run
self._sleep_fn = _sleep_fn
- # TODO(pgervais) pass this as parameters instead.
- if self._cache.get('service_account_creds'):
- try:
- logging.debug('Activating OAuth2 authentication.')
- self._http = infra_libs.get_authenticated_http(
- self._cache['service_account_creds'],
- service_accounts_creds_root=
- self._cache['service_accounts_creds_root'],
- scope='https://www.googleapis.com/auth/cclog',
- http_identifier=HTTP_IDENTIFIER,
- timeout=timeout
- )
- except IOError:
- logging.error('Unable to read credentials, requests will be '
- 'unauthenticated. File: %s',
- self._cache.get('service_account_creds'))
-
def _send_to_endpoint(self, events):
"""Send protobuf to endpoint
« no previous file with comments | « client/third_party/infra_libs/event_mon/protos/goma_stats_pb2.py ('k') | client/third_party/infra_libs/httplib2_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698