Merge pull request #520 from mwhudson/indent-probe-data.json

pretty print the probe data when we dump it to /var/log/installer/block
This commit is contained in:
Michael Hudson-Doyle 2019-08-12 11:20:27 +12:00 committed by GitHub
commit 673f0d80da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(