Skip to content

Commit

Permalink
Require only necessary permissions when saving to GCS bucket (#186)
Browse files Browse the repository at this point in the history
Signed-off-by: vladimir ivanov <[email protected]>
  • Loading branch information
chtcvl authored Aug 2, 2022
1 parent 1200314 commit 623050e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafana_backup/gcs_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main(args, settings):
archive_file = '{0}/{1}'.format(backup_dir, gcs_file_name)

try:
bucket = storage_client.get_bucket(bucket_name)
bucket = storage_client.bucket(bucket_name)

blob = bucket.blob(gcs_file_name)
blob.upload_from_filename(archive_file)
Expand Down

0 comments on commit 623050e

Please sign in to comment.