Skip to content

Commit

Permalink
lib.ptree: scan for 'pciaddress' field in acquire_cpu_for_worker
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed May 20, 2022
1 parent 247761a commit d42c38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ptree/ptree.lua
Expand Up @@ -293,7 +293,7 @@ function Manager:acquire_cpu_for_worker(id, app_graph)
for name, init in pairs(app_graph.apps) do
if type(init.arg) == 'table' then
for k, v in pairs(init.arg) do
if k == 'pciaddr' and not lib.is_iface(v) then
if (k == 'pciaddr' or k == 'pciaddress') and not lib.is_iface(v) then
table.insert(pci_addresses, v)
end
end
Expand Down

0 comments on commit d42c38f

Please sign in to comment.