From cd2d359b02e9b5f77609073215fc3c4335d7e8db Mon Sep 17 00:00:00 2001 From: Pete Zaitcev Date: Thu, 11 May 2017 18:11:55 -0600 Subject: [PATCH] Drop unnecessary dereferencing The patch that introduced this (with my own help, no less), also pasted these in tests, but someone else has already cleaned that up. Change-Id: I87c0a110831b5b5f75cb6fde1badec338f2150a9 --- swift/obj/diskfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swift/obj/diskfile.py b/swift/obj/diskfile.py index 18057a87b2..769a954d92 100644 --- a/swift/obj/diskfile.py +++ b/swift/obj/diskfile.py @@ -1534,7 +1534,7 @@ class BaseDiskFileWriter(object): self._put_succeeded = True if cleanup: try: - self.manager.cleanup_ondisk_files(self._datadir)['files'] + self.manager.cleanup_ondisk_files(self._datadir) except OSError: logging.exception(_('Problem cleaning up %s'), self._datadir) @@ -2725,7 +2725,7 @@ class ECDiskFileWriter(BaseDiskFileWriter): 'No space left on device for %(file)s (%(err)s)' % params) else: try: - self.manager.cleanup_ondisk_files(self._datadir)['files'] + self.manager.cleanup_ondisk_files(self._datadir) except OSError as os_err: self.manager.logger.exception( _('Problem cleaning up %(datadir)s (%(err)s)'),