Skip to content

Commit

Permalink
check_nearfull(): Fix a KeyError
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 a1c2423 commit aaff879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceph_medic/checks/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def check_nearfull():
osd_map = metadata['cluster']['status']['osdmap']['osdmap']
except KeyError:
return
if osd_map['nearfull']:
if osd_map.get('nearfull'):
return code, msg

0 comments on commit aaff879

Please sign in to comment.