mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
mgr/BaseMgrModule: tolerate Int or Long for health 'count'
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
dad94db7ae
commit
69a712ad4b
@ -305,9 +305,11 @@ ceph_set_health_checks(BaseMgrModule *self, PyObject *args)
|
||||
} else if (ks == "count") {
|
||||
if (PyLong_Check(v)) {
|
||||
count = PyLong_AsLong(v);
|
||||
} else if (PyInt_Check(v)) {
|
||||
count = PyInt_AsLong(v);
|
||||
} else {
|
||||
derr << __func__ << " check " << check_name
|
||||
<< " count value not long" << dendl;
|
||||
<< " count value not long or int" << dendl;
|
||||
continue;
|
||||
}
|
||||
} else if (ks == "detail") {
|
||||
|
Loading…
Reference in New Issue
Block a user