diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-04 14:15:18 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-04 14:15:18 +0100 |
commit | b72e5a2e4ed0ac281185d0436cdcafbe80c7f6e7 (patch) | |
tree | 9348049685f7afff98536080b3eb7ea9bc8c8178 /lib | |
parent | a77e7075f627c82a610a2388360488075c850e28 (diff) | |
download | nextcloud-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.php | 4 |
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'; } |