diff --git a/nebula/downloader.py b/nebula/downloader.py index 711129a..20f593c 100644 --- a/nebula/downloader.py +++ b/nebula/downloader.py @@ -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) diff --git a/nebula/manager.py b/nebula/manager.py index 5526305..c6ea5fa 100644 --- a/nebula/manager.py +++ b/nebula/manager.py @@ -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: diff --git a/nebula/network.py b/nebula/network.py index d6afb9b..5708dc4 100644 --- a/nebula/network.py +++ b/nebula/network.py @@ -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