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

Side by Side Diff: appengine/swarming/swarming_bot/api/platforms/gce.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
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 """Google Compute Engine specific utility functions.""" 5 """Google Compute Engine specific utility functions."""
6 6
7 import json 7 import json
8 import logging 8 import logging
9 import threading 9 import threading
10 import time 10 import time
11 import urllib2 11 import urllib2
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 """Returns a list of instance tags or empty list if not GCE VM.""" 110 """Returns a list of instance tags or empty list if not GCE VM."""
111 return get_metadata()['instance']['tags'] 111 return get_metadata()['instance']['tags']
112 112
113 113
114 @tools.cached 114 @tools.cached
115 def can_send_metric(service_account): 115 def can_send_metric(service_account):
116 """True if 'send_metric' really does something.""" 116 """True if 'send_metric' really does something."""
117 # Scope to use Cloud Monitoring. 117 # Scope to use Cloud Monitoring.
118 scope = 'https://www.googleapis.com/auth/monitoring' 118 scope = 'https://www.googleapis.com/auth/monitoring'
119 return scope in oauth2_available_scopes(account=service_account) 119 return scope in oauth2_available_scopes(account=service_account)
OLDNEW
« no previous file with comments | « appengine/swarming/swarming_bot/api/platforms/common.py ('k') | appengine/swarming/swarming_bot/api/platforms/linux.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698