summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTrae Santiago <tsantiago@us.ibm.com>2023-12-14 06:07:21 -0600
committerTrae Santiago <tsantiago@us.ibm.com>2023-12-14 06:07:21 -0600
commitd01aba1f5055cdaa43c8429a2c13580679ec12f7 (patch)
tree638a98db3564f4ed9f7256a193f788a34748ff71 /python
parentd2b29be237b790bb1a258647adf30c8b96c0b526 (diff)
downloadvyos-1x-d01aba1f5055cdaa43c8429a2c13580679ec12f7.tar.gz
vyos-1x-d01aba1f5055cdaa43c8429a2c13580679ec12f7.zip
T5827: moved sys image sort to grub version_list
Diffstat (limited to 'python')
-rw-r--r--python/vyos/system/grub.py2
1 files changed, 2 insertions, 0 deletions
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