Send proper delete for OSD deletion
This commit is contained in:
parent
47c49f7672
commit
456a50a73c
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue