]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow using 'bucket' to set the swift container 2015/head
authorRobin Appelman <robin@icewind.nl>
Fri, 4 Nov 2016 13:15:18 +0000 (14:15 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 4 Nov 2016 13:15:18 +0000 (14:15 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/ObjectStore/Swift.php

index dbb8dde32abc4436c10c5d68411ee62da14100d2..2ccaad27e88d7a0a25a66923856598c49d8562ff 100644 (file)
@@ -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';
                }