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

Side by Side Diff: appengine/auth_service/config.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/auth_service/appengine_config.py ('k') | appengine/auth_service/config_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 """Adapter between config service client and the rest of auth_service. 5 """Adapter between config service client and the rest of auth_service.
6 6
7 Basically a cron job that each minute refetches config files from config service 7 Basically a cron job that each minute refetches config files from config service
8 and modifies auth service datastore state if anything changed. 8 and modifies auth service datastore state if anything changed.
9 9
10 Following files are fetched: 10 Following files are fetched:
11 imports.cfg - configuration for group importer cron job. 11 imports.cfg - configuration for group importer cron job.
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 try: 550 try:
551 location = gitiles.Location.parse(configs_url) 551 location = gitiles.Location.parse(configs_url)
552 return str(gitiles.Location( 552 return str(gitiles.Location(
553 hostname=location.hostname, 553 hostname=location.hostname,
554 project=location.project, 554 project=location.project,
555 treeish=rev, 555 treeish=rev,
556 path=posixpath.join(location.path, path))) 556 path=posixpath.join(location.path, path)))
557 except ValueError: 557 except ValueError:
558 # Not a gitiles URL, return as is. 558 # Not a gitiles URL, return as is.
559 return configs_url 559 return configs_url
OLDNEW
« no previous file with comments | « appengine/auth_service/appengine_config.py ('k') | appengine/auth_service/config_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698