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 |