Use a more widely available method to test s3 settings
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b939383049
commit
48ea714341
|
@ -566,13 +566,10 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test() {
|
public function test() {
|
||||||
$test = $this->getConnection()->getBucketAcl(array(
|
$this->getConnection()->headBucket([
|
||||||
'Bucket' => $this->bucket,
|
'Bucket' => $this->bucket
|
||||||
));
|
]);
|
||||||
if (isset($test) && !is_null($test->getPath('Owner/ID'))) {
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId() {
|
public function getId() {
|
||||||
|
|
Loading…
Reference in New Issue