Batch member update needs pool_id explicitly

Pulling it from the members doesn't work if it is a delete operation
where there aren't any!

Story: 2006719
Task: 37091

Change-Id: Ia67172306c28c17648eb7f0263c5a66b44a96baa
This commit is contained in:
Adam Harwell 2019-10-14 12:31:46 -07:00
parent 079c866139
commit 3c6b639b68
2 changed files with 4 additions and 2 deletions

View File

@ -285,9 +285,11 @@ class ProviderDriver(object):
operator_fault_string='This provider does not support updating '
'members.')
def member_batch_update(self, members):
def member_batch_update(self, pool_id, members):
"""Creates, updates, or deletes a set of pool members.
:param pool_id: The id of the pool to update.
:type pool_id: string
:param members: List of member objects.
:type members: list
:return: Nothing if the create request was accepted.

View File

@ -100,7 +100,7 @@ class TestProviderBase(base.TestCase):
def test_member_batch_update(self):
self.assertRaises(exceptions.NotImplementedError,
self.driver.member_batch_update,
False)
False, False)
def test_health_monitor_create(self):
self.assertRaises(exceptions.NotImplementedError,