Skip to content

Commit

Permalink
check_nearfull(): Fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Jun 11, 2020
1 parent 744820b commit a1c2423
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions ceph_medic/checks/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ def check_osds_exist():
if not osd_count:
return code, msg


def check_nearfull():
"""
Checks if the osd capacity is at nearfull
"""
code = 'ECLS2'
msg = 'Cluster is nearfull'
try:
osd_map = metadata['cluster']['status']['osdmap']['osdmap']
except KeyError:
return
if osd_map['nearfull']:
return code, msg
"""
Checks if the osd capacity is at nearfull
"""
code = 'ECLS2'
msg = 'Cluster is nearfull'
try:
osd_map = metadata['cluster']['status']['osdmap']['osdmap']
except KeyError:
return
if osd_map['nearfull']:
return code, msg

0 comments on commit a1c2423

Please sign in to comment.