GoogleCloudStorageBucket.gcs_bucket → _gcs_bucket

Added a few FIXME comments where _gcs_bucket is used outside of the class.
This commit is contained in:
2016-11-09 11:43:52 +01:00
committed by Francesco Siddi
parent 27df603299
commit e5b4ce0890
3 changed files with 15 additions and 13 deletions

View File

@@ -45,8 +45,9 @@ def size_descriptor(width, height):
@skip_when_testing
def rename_on_gcs(bucket_name, from_path, to_path):
gcs = GoogleCloudStorageBucket(str(bucket_name))
blob = gcs.gcs_bucket.blob(from_path)
gcs.gcs_bucket.rename_blob(blob, to_path)
# FIXME: don't use internal property, but use our bucket/blob API.
blob = gcs._gcs_bucket.blob(from_path)
gcs._gcs_bucket.rename_blob(blob, to_path)
@encoding.route('/zencoder/notifications', methods=['POST'])