Skip to content

Commit 878d325

Browse files
committed
guestfs: fix PCIe passthrough device attachment
The virsh attach-device command was receiving the entire file information dictionary instead of just the file path, causing: error: Failed to open file '{'path': '/path/to/file.xml', ...}' Fixed by using {{ item.path }} instead of {{ item }} to extract just the file path from the find results. Generated-by: Claude AI Reviewed-by: Chuck Lever <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 21baf19 commit 878d325

File tree

1 file changed

+1
-1
lines changed
  • playbooks/roles/guestfs/tasks/bringup

1 file changed

+1
-1
lines changed

playbooks/roles/guestfs/tasks/bringup/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
- "virsh"
120120
- "attach-device"
121121
- "{{ inventory_hostname }}"
122-
- "{{ item }}"
122+
- "{{ item.path }}"
123123
- "--config"
124124
loop: "{{ passthrough_devices.files }}"
125125
loop_control:

0 commit comments

Comments
 (0)