Skip to content

Commit

Permalink
Return pci in gpu_choices (#14979)
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr authored Nov 19, 2024
1 parent d4a000e commit 506b452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewared/middlewared/api/v25_04_0/virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ class GPUChoice(BaseModel):
slot: int
description: str
vendor: Optional[str] = None
pci: str


class VirtDeviceGPUChoicesResult(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions src/middlewared/middlewared/plugins/virt/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def gpu_choices(self, instance_type, gpu_type):
'slot': i['addr']['slot'],
'description': i['description'],
'vendor': i['vendor'],
'pci': i['addr']['pci_slot'],
}
return choices

Expand Down

0 comments on commit 506b452

Please sign in to comment.