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

Unified Diff: third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py
diff --git a/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py b/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py
new file mode 100644
index 0000000000000000000000000000000000000000..3c28e19d018da1a35df33bebcc78b420ae7609d0
--- /dev/null
+++ b/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py
@@ -0,0 +1,13 @@
+"""Shim for backwards-compatibility for moving GCE credentials.
+
+oauth2client loads credentials classes based on the module name where
+they were created; this means that moving GceAssertionCredentials from
+here to third_party requires a shim mapping the old name to the new
+one. Once loaded, the credential will be re-serialized with the new
+path, meaning that we can (at some point) consider removing this file.
+"""
+
+# TODO: Remove this module once this change has been around long
+# enough that old credentials are likely to be rare.
+
+from apitools.base.py import GceAssertionCredentials

Powered by Google App Engine
This is Rietveld 408576698