Ticket #770: Add sanity check

ticket-769
Vadim vtroshchinskiy 2024-09-27 12:47:40 +02:00
parent 42afc6f24e
commit 4974e34c23
1 changed files with 4 additions and 0 deletions

View File

@ -1005,6 +1005,10 @@ class OpengnsysGitLibrary:
self.logger.debug("Finishing...")
if len(filesystems_data) < 1:
self.logger.error("Filesystems data doesn't contain anything, this is probably a bug!")
filesystems_file.write(json.dumps(filesystems_data, indent=4) + "\n")
metadata_file.write(json.dumps(metadata, indent=4) + "\n")