Delete the wrong parameter in the method checkpoints_delete

Change-Id: Iadd1e5de7c07cdc1195b48c565756185131b2be0
Closes-Bug: #1564750
This commit is contained in:
chenying 2016-04-01 15:45:13 +08:00
parent 17b7929d16
commit d1230b3e5b
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ class ProvidersController(wsgi.Controller):
LOG.info(_LI("Checkpoint info retrieved successfully."))
return checkpoint
def checkpoints_delete(self, req, provider_id, checkpoint_id, body):
def checkpoints_delete(self, req, provider_id, checkpoint_id):
"""Delete a checkpoint."""
context = req.environ['smaug.context']

View File

@ -108,7 +108,7 @@ class ProvidersApiTest(base.TestCase):
self.controller.checkpoints_delete(
req,
'2220f8b1-975d-4621-a872-fa9afb43cb6c',
'2220f8b1-975d-4621-a872-fa9afb43cb6c', {})
'2220f8b1-975d-4621-a872-fa9afb43cb6c')
self.assertTrue(moak_delete.called)
@mock.patch(