Merge "Return a tuple from SolidFire update_provider_info"
This commit is contained in:
commit
de64f5ad71
@ -1046,6 +1046,6 @@ class SolidFireVolumeTestCase(test.TestCase):
|
|||||||
|
|
||||||
with mock.patch.object(
|
with mock.patch.object(
|
||||||
sfv, '_issue_api_request', side_effect=_fake_issue_api_req):
|
sfv, '_issue_api_request', side_effect=_fake_issue_api_req):
|
||||||
updates = sfv._init_volume_mappings(vrefs)
|
volume_updates, snapshot_updates = sfv.update_provider_info(vrefs)
|
||||||
self.assertEqual(99, updates[0]['provider_id'])
|
self.assertEqual(99, volume_updates[0]['provider_id'])
|
||||||
self.assertEqual(1, len(updates))
|
self.assertEqual(1, len(volume_updates))
|
||||||
|
@ -205,7 +205,9 @@ class SolidFireDriver(san.SanISCSIDriver):
|
|||||||
return updates
|
return updates
|
||||||
|
|
||||||
def update_provider_info(self, vrefs):
|
def update_provider_info(self, vrefs):
|
||||||
return self._init_volume_mappings(vrefs)
|
volume_updates = self._init_volume_mappings(vrefs)
|
||||||
|
snapshot_updates = None
|
||||||
|
return (volume_updates, snapshot_updates)
|
||||||
|
|
||||||
def _create_template_account(self, account_name):
|
def _create_template_account(self, account_name):
|
||||||
# We raise an API exception if the account doesn't exist
|
# We raise an API exception if the account doesn't exist
|
||||||
|
Loading…
Reference in New Issue
Block a user