Merge pull request #2015 from nextcloud/swift-bucket

allow using 'bucket' to set the swift container
pull/1893/head
Lukas Reschke 10 years ago committed by GitHub
commit a9547a2fd7
  1. 4
      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';
}

Loading…
Cancel
Save