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

Side by Side Diff: appengine/machine_provider/handlers_endpoints.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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
OLDNEW
1 # Copyright 2015 The LUCI 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 under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Cloud endpoints for the Machine Provider API.""" 5 """Cloud endpoints for the Machine Provider API."""
6 6
7 import hashlib 7 import hashlib
8 import json 8 import json
9 import logging 9 import logging
10 10
11 import endpoints 11 import endpoints
12 from google.appengine import runtime 12 from google.appengine import runtime
13 from google.appengine.api import app_identity 13 from google.appengine.api import app_identity
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 request_hash, 509 request_hash,
510 ) 510 )
511 return rpc_messages.LeaseReleaseRequestError.ALREADY_RECLAIMED 511 return rpc_messages.LeaseReleaseRequestError.ALREADY_RECLAIMED
512 logging.info('Releasing LeaseRequest: %s', request_hash) 512 logging.info('Releasing LeaseRequest: %s', request_hash)
513 request.released = True 513 request.released = True
514 request.put() 514 request.put()
515 515
516 516
517 def create_endpoints_app(): 517 def create_endpoints_app():
518 return endpoints.api_server([CatalogEndpoints, MachineProviderEndpoints]) 518 return endpoints.api_server([CatalogEndpoints, MachineProviderEndpoints])
OLDNEW
« no previous file with comments | « appengine/machine_provider/handlers_cron_test.py ('k') | appengine/machine_provider/handlers_endpoints_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698