summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrae Santiago <tsantiago@us.ibm.com>2023-12-14 05:42:48 -0600
committerTrae Santiago <tsantiago@us.ibm.com>2023-12-14 05:42:48 -0600
commit2f8b22685065f25183133431502322decede6371 (patch)
treecc38e7997974e3c4ffc5437e0fcb8597d1f799e3
parenta9ff143fc1e9a95ac2f375db0bd06a8a43fa860e (diff)
downloadvyos-1x-2f8b22685065f25183133431502322decede6371.tar.gz
vyos-1x-2f8b22685065f25183133431502322decede6371.zip
T5827: made show system image alphabetical
-rwxr-xr-xsrc/op_mode/image_manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/image_manager.py b/src/op_mode/image_manager.py
index e75485f9f..e1c788940 100755
--- a/src/op_mode/image_manager.py
+++ b/src/op_mode/image_manager.py
@@ -157,6 +157,8 @@ def rename_image(name_old: str, name_new: str) -> None:
def list_images() -> None:
"""Print list of available images for CLI hints"""
images_list: list[str] = grub.version_list()
+ image_list.sort()
+
for image_name in images_list:
print(image_name)