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

Side by Side Diff: appengine/config_service/services.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « appengine/config_service/projects_test.py ('k') | appengine/config_service/services_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Swarming Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Provides info about registered luci services.""" 5 """Provides info about registered luci services."""
6 6
7 from google.appengine.ext import ndb 7 from google.appengine.ext import ndb
8 8
9 from components import config 9 from components import config
10 from components import net 10 from components import net
11 from components import utils 11 from components import utils
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 if not service.metadata_url: 86 if not service.metadata_url:
87 raise ndb.Return(service_config_pb2.ServiceDynamicMetadata()) 87 raise ndb.Return(service_config_pb2.ServiceDynamicMetadata())
88 88
89 try: 89 try:
90 res = yield net.json_request_async( 90 res = yield net.json_request_async(
91 service.metadata_url, scopes=net.EMAIL_SCOPE) 91 service.metadata_url, scopes=net.EMAIL_SCOPE)
92 except net.Error as ex: 92 except net.Error as ex:
93 raise DynamicMetadataError('Net error: %s' % ex.message) 93 raise DynamicMetadataError('Net error: %s' % ex.message)
94 raise ndb.Return(_dict_to_dynamic_metadata(res)) 94 raise ndb.Return(_dict_to_dynamic_metadata(res))
OLDNEW
« no previous file with comments | « appengine/config_service/projects_test.py ('k') | appengine/config_service/services_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698