Skip to content

Commit 0a29768

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cb3fb12 commit 0a29768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linode_api4/objects/linode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,13 +1344,13 @@ def _build_devices():
13441344

13451345
if disks:
13461346
device_list += [
1347-
_device_entry(disk, "disk_id")
1347+
_device_entry(disk, "disk_id") if disk is not None else None
13481348
for disk in normalize_as_list(disks)
13491349
]
13501350

13511351
if volumes:
13521352
device_list += [
1353-
_device_entry(volume, "volume_id")
1353+
_device_entry(volume, "volume_id") if volume is not None else None
13541354
for volume in normalize_as_list(volumes)
13551355
]
13561356

0 commit comments

Comments
 (0)