summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2018-12-21 09:56:37 -0800
committerMichael Kozono <mkozono@gmail.com>2018-12-21 10:34:05 -0800
commitd2d85c31fea920b0e62fb600fc6de874762a71ad (patch)
treed63cbc08102fe75d28d8e302179e874e69f99409 /lib/backup
parenta9049532a271117983430d2d80b8ad61879ecf7a (diff)
downloadgitlab-ce-d2d85c31fea920b0e62fb600fc6de874762a71ad.tar.gz
Avoid extra storage bucket perm and querymk/avoid-extra-storage-perm-and-query
Specifically, the `ListAllMyBuckets` permission. This works if you know the directory exists. See more: * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23981 * https://stackoverflow.com/a/12288581/1992201
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index a0434a66ef1..0add2b3f875 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -195,7 +195,7 @@ module Backup
if connection.service == ::Fog::Storage::Local
connection.directories.create(key: remote_directory)
else
- connection.directories.get(remote_directory)
+ connection.directories.new(key: remote_directory)
end
end