Skip to content

Commit ad0b65c

Browse files
pls
1 parent 24c6e86 commit ad0b65c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

linode_api4/objects/linode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,8 @@ def _flatten_device(device: Disk | Volume | None):
13061306
return {"disk_id": device.id}
13071307
elif isinstance(device, Volume):
13081308
return {"volume_id": device.id}
1309+
elif isinstance(device, dict):
1310+
return device
13091311

13101312
raise TypeError("Disk or Volume expected!")
13111313

0 commit comments

Comments
 (0)