Skip to content

Commit

Permalink
exclude properties.yaml and hashes.txt at empty files check
Browse files Browse the repository at this point in the history
Signed-off-by: kimpaller <[email protected]>
  • Loading branch information
kimpaller committed Nov 26, 2024
1 parent 0c632f3 commit 019851f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nebula/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,16 @@ def _find_boot_files(self, folder):
if not os.path.isdir(folder):
raise Exception("Boot files folder not found")
files = os.listdir(folder)

# check for empty files
res = []
for file in files:
path = os.path.join(folder, file)
filesize = os.stat(path).st_size
exemption = ["properties.yaml","hashes.txt"]
if filesize <= 80:
if file in exemption:
continue
res.append(file)
if len(res) != 0:
raise Exception("Empty files:" + str(res))
Expand Down

0 comments on commit 019851f

Please sign in to comment.