@@ -217,7 +217,7 @@ async def list(
217217 extra_body = extra_body ,
218218 timeout = timeout ,
219219 )
220- return [AsyncDevbox (self ._client , item .id ) for item in getattr ( page , " devboxes" , []) ]
220+ return [AsyncDevbox (self ._client , item .id ) for item in page . devboxes ]
221221
222222
223223class AsyncSnapshotClient :
@@ -250,7 +250,7 @@ async def list(
250250 extra_body = extra_body ,
251251 timeout = timeout ,
252252 )
253- return [AsyncSnapshot (self ._client , item .id ) for item in getattr ( page , "disk_snapshots" , []) ]
253+ return [AsyncSnapshot (self ._client , item .id ) for item in page . snapshots ]
254254
255255 def from_id (self , snapshot_id : str ) -> AsyncSnapshot :
256256 return AsyncSnapshot (self ._client , snapshot_id )
@@ -329,7 +329,7 @@ async def list(
329329 extra_body = extra_body ,
330330 timeout = timeout ,
331331 )
332- return [AsyncBlueprint (self ._client , item .id ) for item in getattr ( page , " blueprints" , []) ]
332+ return [AsyncBlueprint (self ._client , item .id ) for item in page . blueprints ]
333333
334334
335335class AsyncStorageObjectClient :
@@ -378,7 +378,7 @@ async def list(
378378 extra_body = extra_body ,
379379 timeout = timeout ,
380380 )
381- return [AsyncStorageObject (self ._client , item .id , upload_url = None ) for item in getattr ( page , " objects" , []) ]
381+ return [AsyncStorageObject (self ._client , item .id , upload_url = item . upload_url ) for item in page . objects ]
382382
383383 async def upload_from_file (
384384 self ,
0 commit comments