Send proper delete for OSD deletion

This commit is contained in:
Joshua Boniface 2020-01-06 12:59:00 -05:00
parent 47c49f7672
commit 456a50a73c
1 changed files with 2 additions and 2 deletions

View File

@ -245,12 +245,12 @@ def ceph_osd_remove(config, osdid):
""" """
Remove Ceph OSD Remove Ceph OSD
API endpoint: POST /api/v1/storage/ceph/osd/{osdid} API endpoint: DELETE /api/v1/storage/ceph/osd/{osdid}
API arguments: API arguments:
API schema: {"message":"{data}"} API schema: {"message":"{data}"}
""" """
request_uri = get_request_uri(config, '/storage/ceph/osd/{osdid}'.format(osdid=osdid)) request_uri = get_request_uri(config, '/storage/ceph/osd/{osdid}'.format(osdid=osdid))
response = requests.post( response = requests.delete(
request_uri, request_uri,
params={ params={
'yes-i-really-mean-it': 'yes' 'yes-i-really-mean-it': 'yes'