From acaf67f4862bc6ab1d253dd7dd5b66d8919588b8 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Mon, 14 Jul 2025 17:13:17 +0200 Subject: [PATCH] refs #2464 change sort order --- CHANGELOG.md | 6 ++++++ ogclient/lib/python3/DiskLib.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7034738..b3a81da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.26.1] - 2025-07-14 + +### Changed + +- Change sort order in `_getAllDisks()` + ## [0.26.0] - 2025-07-14 ### Fixed diff --git a/ogclient/lib/python3/DiskLib.py b/ogclient/lib/python3/DiskLib.py index be7366b..f1130af 100644 --- a/ogclient/lib/python3/DiskLib.py +++ b/ogclient/lib/python3/DiskLib.py @@ -383,7 +383,7 @@ def ogDevToDisk(arg_dev): def _getAllDisks(): ret = [] - all_disks = subprocess.run("lsblk -n -e 1,2 -x MAJ:MIN 2>/dev/null || lsblk -n -e 1,2", shell=True, capture_output=True, text=True).stdout.splitlines() + all_disks = subprocess.run("lsblk -n -e 1,2 -x NAME 2>/dev/null || lsblk -n -e 1,2", shell=True, capture_output=True, text=True).stdout.splitlines() for line in all_disks: parts = line.split() if parts[5] == "disk":