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

Unified Diff: third_party/gsutil/gslib/cloud_api_delegator.py

Issue 1380943003: Roll version of gsutil to 4.15. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 5 years 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
« no previous file with comments | « third_party/gsutil/gslib/cloud_api.py ('k') | third_party/gsutil/gslib/cloud_api_helper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/gslib/cloud_api_delegator.py
diff --git a/third_party/gsutil/gslib/cloud_api_delegator.py b/third_party/gsutil/gslib/cloud_api_delegator.py
index 05c8732c0de645e38aaaff915282f762befc4274..3fc3aa544eacdf8fcff24ff04c66b06e5eff09bb 100644
--- a/third_party/gsutil/gslib/cloud_api_delegator.py
+++ b/third_party/gsutil/gslib/cloud_api_delegator.py
@@ -41,7 +41,7 @@ class CloudApiDelegator(CloudApi):
"""
def __init__(self, bucket_storage_uri_class, gsutil_api_map, logger,
- provider=None, debug=0):
+ provider=None, debug=0, trace_token=None):
"""Performs necessary setup for delegating cloud storage requests.
This function has different arguments than the gsutil Cloud API __init__
@@ -56,9 +56,11 @@ class CloudApiDelegator(CloudApi):
provider: Default provider prefix describing cloud storage provider to
connect to.
debug: Debug level for the API implementation (0..3).
+ trace_token: Apiary trace token to pass to API.
"""
super(CloudApiDelegator, self).__init__(bucket_storage_uri_class, logger,
- provider=provider, debug=debug)
+ provider=provider, debug=debug,
+ trace_token=trace_token)
self.api_map = gsutil_api_map
self.prefer_api = boto.config.get('GSUtil', 'prefer_api', '').upper()
self.loaded_apis = {}
@@ -116,7 +118,8 @@ class CloudApiDelegator(CloudApi):
self.bucket_storage_uri_class,
self.logger,
provider=provider,
- debug=self.debug))
+ debug=self.debug,
+ trace_token=self.trace_token))
def GetApiSelector(self, provider=None):
"""Returns a cs_api_map.ApiSelector based on input and configuration.
« no previous file with comments | « third_party/gsutil/gslib/cloud_api.py ('k') | third_party/gsutil/gslib/cloud_api_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698