The inconsistency of delete method between restore API and client

In the restore module in karbor-client component,there exists
delete(restore_id) that calls delete(path), but I can't find any
delete method in restore API module.

Closes-Bug:#1624841

Change-Id: I507c677b141d72b57d52fd6b653cc8a652a103bf
This commit is contained in:
Hui Wang 2016-12-14 12:40:59 +08:00
parent 6e40fea91e
commit 041cb460f9
1 changed files with 0 additions and 5 deletions

View File

@ -35,11 +35,6 @@ class RestoreManager(base.ManagerWithFind):
url = "/restores"
return self._create(url, body, 'restore')
def delete(self, restore_id):
path = '/restores/{restore_id}'.format(
restore_id=restore_id)
return self._delete(path)
def get(self, restore_id, session_id=None):
if session_id:
headers = {'X-Configuration-Session': session_id}