From 091a4f0f80335d9367b09c48fa25c78eeba25b46 Mon Sep 17 00:00:00 2001 From: Trae Santiago Date: Thu, 14 Dec 2023 06:07:21 -0600 Subject: T5827: moved sys image sort to grub version_list (cherry picked from commit d01aba1f5055cdaa43c8429a2c13580679ec12f7) --- python/vyos/system/grub.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/vyos') diff --git a/python/vyos/system/grub.py b/python/vyos/system/grub.py index 0ac16af9a..4ebf229a0 100644 --- a/python/vyos/system/grub.py +++ b/python/vyos/system/grub.py @@ -138,6 +138,8 @@ def version_list(root_dir: str = '') -> list[str]: versions_list: list[str] = [] for file in versions_files: versions_list.append(file.stem) + versions_list.sort() + return versions_list -- cgit v1.2.3