summaryrefslogtreecommitdiffstats
path: root/lib/private/files/objectstore/swift.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/objectstore/swift.php')
-rw-r--r--lib/private/files/objectstore/swift.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/objectstore/swift.php b/lib/private/files/objectstore/swift.php
index 8957c8fd571..71aae23bb5a 100644
--- a/lib/private/files/objectstore/swift.php
+++ b/lib/private/files/objectstore/swift.php
@@ -135,8 +135,8 @@ class Swift implements IObjectStore {
*/
public function deleteObject($urn) {
$this->init();
- $object = $this->container->getObject($urn);
- $object->delete();
+ // see https://github.com/rackspace/php-opencloud/issues/243#issuecomment-30032242
+ $this->container->dataObject()->setName($urn)->delete();
}
public function deleteContainer($recursive = false) {