Sort slots numerically instead of lexicographically
This commit is contained in:
@@ -103,6 +103,7 @@ def list_slots(enclosure_id: str) -> list[dict]:
|
||||
"device": device,
|
||||
})
|
||||
|
||||
slots.sort(key=lambda s: s["slot"])
|
||||
return slots
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user