summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-04 14:15:18 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-04 14:15:18 +0100
commitb72e5a2e4ed0ac281185d0436cdcafbe80c7f6e7 (patch)
tree9348049685f7afff98536080b3eb7ea9bc8c8178 /lib
parenta77e7075f627c82a610a2388360488075c850e28 (diff)
downloadnextcloud-server-b72e5a2e4ed0ac281185d0436cdcafbe80c7f6e7.tar.gz
nextcloud-server-b72e5a2e4ed0ac281185d0436cdcafbe80c7f6e7.zip
allow using 'bucket' to set the swift container
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/ObjectStore/Swift.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/Swift.php b/lib/private/Files/ObjectStore/Swift.php
index dbb8dde32ab..2ccaad27e88 100644
--- a/lib/private/Files/ObjectStore/Swift.php
+++ b/lib/private/Files/ObjectStore/Swift.php
@@ -30,6 +30,7 @@ use OpenCloud\OpenStack;
use OpenCloud\Rackspace;
class Swift implements IObjectStore {
+
/**
* @var \OpenCloud\OpenStack
*/
@@ -51,6 +52,9 @@ class Swift implements IObjectStore {
private $container;
public function __construct($params) {
+ if (isset($params['bucket'])) {
+ $params['container'] = $params['bucket'];
+ }
if (!isset($params['container'])) {
$params['container'] = 'owncloud';
}