From c272dee04c5b5c97604dcc8bf07fc677eebe9ce6 Mon Sep 17 00:00:00 2001 From: Rodrigo Barbieri Date: Tue, 17 May 2016 10:41:12 -0300 Subject: [PATCH] HDS_HNAS: Remove unused parameter Removed an unused parameter from internal share shrink funciton. TrivialFix Change-Id: Ie8291ae4571fedc7eb721edc721de9547142d393 --- manila/share/drivers/hitachi/hds_hnas.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manila/share/drivers/hitachi/hds_hnas.py b/manila/share/drivers/hitachi/hds_hnas.py index 5e5060f1b7..ec1dea8da9 100644 --- a/manila/share/drivers/hitachi/hds_hnas.py +++ b/manila/share/drivers/hitachi/hds_hnas.py @@ -433,7 +433,7 @@ class HDSHNASDriver(driver.ShareDriver): LOG.debug("Shrinking share in HNAS: %(shr_id)s.", {'shr_id': share['id']}) - self._shrink_share(share_id, share['size'], new_size) + self._shrink_share(share_id, new_size) LOG.info(_LI("Share %(shr_id)s successfully shrunk to " "%(shr_size)sG."), {'shr_id': share['id'], @@ -499,11 +499,10 @@ class HDSHNASDriver(driver.ShareDriver): self.hnas.check_export(share_id) return path - def _shrink_share(self, share_id, old_size, new_size): + def _shrink_share(self, share_id, new_size): """Shrinks a share to new size. :param share_id: ID of share that will be shrunk. - :param old_size: Current size of share that will be shrunk. :param new_size: New size of share after shrink operation. """ self._ensure_share(share_id)