Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nebula/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def gen_url(ip, branch, folder, filename, addl, url_template, source="artifactor
release_folder = branch.upper()
url = url_template.format(ip, release_folder, "", "")
# folder = BUILD_DATE/PROJECT_FOLDER
folder = get_newest_folder(listFD(url[:-1])) + "/" + str(folder)
folder = (
get_newest_folder(listFD(url[:-1])) + "/boot_partition/" + str(folder)
)
return url_template.format(ip, release_folder, folder, filename)


Expand Down
2 changes: 2 additions & 0 deletions nebula/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ def _find_boot_files(self, folder):
files = os.listdir(folder)
res = []
for file in files:
if file == "properties.yaml": # to skip checking of properties.yaml file
continue
path = os.path.join(folder, file)
filesize = os.stat(path).st_size
if filesize <= 80:
Expand Down
2 changes: 1 addition & 1 deletion nebula/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def run_diagnostics(self):

def verify_checksum(self, file_path, reference, algo="sha256"):
if algo == "sha256":
ssh_command = 'python -c "import hashlib;'
ssh_command = 'python3 -c "import hashlib;'
ssh_command += f" print(hashlib.sha256(open('{file_path}', 'rb').read()).hexdigest())\""
result = self.run_ssh_command(
command=ssh_command, print_result_to_file=False, show_log=False
Expand Down
Loading