Merge "HDS_HNAS: Remove unused parameter"

This commit is contained in:
Jenkins 2016-05-24 18:43:47 +00:00 committed by Gerrit Code Review
commit ef2a6a8ac6
1 changed files with 2 additions and 3 deletions

View File

@ -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)