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:
parent
6e40fea91e
commit
041cb460f9
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue