From 420ebfcda4d25bed3daaadf47c9a6343127380b1 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Mon, 12 Aug 2019 10:37:50 +1200 Subject: [PATCH] pretty print the probe data when we dump it to /var/log/installer/block --- subiquity/controllers/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subiquity/controllers/filesystem.py b/subiquity/controllers/filesystem.py index 28c663c6..b961d3f2 100644 --- a/subiquity/controllers/filesystem.py +++ b/subiquity/controllers/filesystem.py @@ -92,7 +92,7 @@ class FilesystemController(BaseController): else: fname = 'probe-data.json' with open(os.path.join(self.block_log_dir, fname), 'w') as fp: - json.dump(storage, fp) + json.dump(storage, fp, indent=4) self.model.load_probe_data(storage) except Exception: block_discover_log.exception(