Add error message to OSD parse fail

This commit is contained in:
Joshua Boniface 2020-05-09 13:56:13 -04:00
parent 95c59ba629
commit 5f9836f96d
1 changed files with 2 additions and 2 deletions

View File

@ -1183,8 +1183,8 @@ def update_zookeeper():
retcode, stdout, stderr = common.run_os_command('ceph osd df --format json', timeout=1)
try:
osd_df_raw = json.loads(stdout)['nodes']
except:
logger.out('Failed to parse OSD list', state='w')
except Exception as e:
logger.out('Failed to parse OSD list: {}'.format(e), state='w')
osd_df_raw = []
if debug: