mirror of
https://github.com/ceph/ceph
synced 2024-12-29 06:52:35 +00:00
mgr/devicehealth: fix style for returns
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
1f8662a708
commit
ccdfcc7e72
@ -211,7 +211,7 @@ class Module(MgrModule):
|
||||
data = self.extract_smart_features(raw_data)
|
||||
self.put_device_metrics(ioctx, device, data)
|
||||
ioctx.close()
|
||||
return (0, "", "")
|
||||
return 0, "", ""
|
||||
|
||||
def scrape_all(self):
|
||||
osdmap = self.get("osd_map")
|
||||
@ -232,7 +232,7 @@ class Module(MgrModule):
|
||||
self.put_device_metrics(ioctx, device, data)
|
||||
|
||||
ioctx.close()
|
||||
return (0, "", "")
|
||||
return 0, "", ""
|
||||
|
||||
def scrape_device(self, devid):
|
||||
r = self.get("device " + devid)
|
||||
@ -251,7 +251,7 @@ class Module(MgrModule):
|
||||
data = self.extract_smart_features(raw_data)
|
||||
self.put_device_metrics(ioctx, device, data)
|
||||
ioctx.close()
|
||||
return (0, "", "")
|
||||
return 0, "", ""
|
||||
|
||||
def do_scrape_osd(self, osd_id, ioctx, devid=''):
|
||||
self.log.debug('do_scrape_osd osd.%d' % osd_id)
|
||||
@ -322,7 +322,7 @@ class Module(MgrModule):
|
||||
res[key] = v
|
||||
except:
|
||||
pass
|
||||
return (0, json.dumps(res, indent=4), '')
|
||||
return 0, json.dumps(res, indent=4), ''
|
||||
|
||||
def check_health(self):
|
||||
self.log.info('Check health')
|
||||
@ -427,7 +427,7 @@ class Module(MgrModule):
|
||||
'detail': ls,
|
||||
}
|
||||
self.set_health_checks(checks)
|
||||
return (0,"","")
|
||||
return 0, "", ""
|
||||
|
||||
def is_osd_in(self, osdmap, osd_id):
|
||||
for osd in osdmap['osds']:
|
||||
|
Loading…
Reference in New Issue
Block a user