Skip to content

Commit f1015e4

Browse files
committed
fix: update disk status attribute names and bump urllib3 version
1 parent 043c858 commit f1015e4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

riocli/disk/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def display_disk_list(disks: typing.Any, show_header: bool = True):
5555
data = []
5656

5757
for d in disks:
58-
capacity_used = getattr(d.status, "capacityUsed", 0) or 0
58+
capacity_used = getattr(d.status, "capacity_used", 0) or 0
5959

6060
capacity = capacity_used / (1024 * 1204 * 1024) # Bytes -> GB
6161

@@ -66,7 +66,7 @@ def display_disk_list(disks: typing.Any, show_header: bool = True):
6666
d.status.status,
6767
d.spec.capacity,
6868
capacity,
69-
getattr(d.status.diskBound, "deployment_name", None),
69+
getattr(d.status.disk_bound, "deployment_name", None),
7070
]
7171
)
7272

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)