Browse Source

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
changes/46/688546/1
Adam Harwell 2 years ago
parent
commit
3c6b639b68
  1. 4
      octavia_lib/api/drivers/provider_base.py
  2. 2
      octavia_lib/tests/unit/api/drivers/test_provider_base.py

4
octavia_lib/api/drivers/provider_base.py

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

2
octavia_lib/tests/unit/api/drivers/test_provider_base.py

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

Loading…
Cancel
Save