Use only one element in OSD state
This commit is contained in:
parent
1da7462e0d
commit
b7960cd221
|
@ -567,10 +567,10 @@ def ceph_osd_state(osd):
|
||||||
else:
|
else:
|
||||||
retcode = 400
|
retcode = 400
|
||||||
|
|
||||||
in_state = retdata['stats']['in']
|
in_state = retdata[0]['stats']['in']
|
||||||
up_state = retdata['stats']['up']
|
up_state = retdata[0]['stats']['up']
|
||||||
|
|
||||||
return flask.jsonify([{ "id": osd, "in": in_state, "up": up_state }]), retcode
|
return flask.jsonify({ "id": osd, "in": in_state, "up": up_state }), retcode
|
||||||
|
|
||||||
def ceph_osd_add(node, device, weight):
|
def ceph_osd_add(node, device, weight):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue