diff options
author | Trae Santiago <tsantiago@us.ibm.com> | 2023-12-14 05:42:48 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-12-16 20:37:11 -0600 |
commit | 6bfc9af902f5543a6123d0cba7b1306769b08b04 (patch) | |
tree | bcc70b3531c77c353a4ea0575e806546eca2166e /src | |
parent | d127d853066ba713046a67e0e400300a89880e8e (diff) | |
download | vyos-1x-6bfc9af902f5543a6123d0cba7b1306769b08b04.tar.gz vyos-1x-6bfc9af902f5543a6123d0cba7b1306769b08b04.zip |
T5827: made show system image alphabetical
(cherry picked from commit 2f8b22685065f25183133431502322decede6371)
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/image_manager.py | 2 |
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) |