Instead of:
"systemd": "",
"type": "bluestore",
"whoami": "0"
}root@alpha:~#
A newline is added to the JSON file when writing:
"type": "bluestore",
"whoami": "0"
}
root@alpha:~#
Makes it a bit easier to read the JSON files on a terminal
Signed-off-by: Wido den Hollander <wido@42on.com>
else:
with open(json_path, 'w') as fp:
json.dump(osd_metadata, fp, indent=4, sort_keys=True, ensure_ascii=False)
+ fp.write(os.linesep)
terminal.success(
'OSD %s got scanned and metadata persisted to file: %s' % (
osd_id,