Skip to content

Commit a2fee52

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove the redundant code for attach interface"
2 parents 033af94 + faa9de9 commit a2fee52

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

nova/compute/manager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7809,12 +7809,6 @@ def _attach_interface(self, context, instance, network_id, port_id,
78097809
context, requested_networks, pci_reqs,
78107810
affinity_policy=pci_numa_affinity_policy)
78117811

7812-
# We only support one port per attach request so we at most have one
7813-
# pci request
7814-
if pci_reqs.requests:
7815-
pci_req = pci_reqs.requests[0]
7816-
requested_networks[0].pci_request_id = pci_req.request_id
7817-
78187812
result = self._allocate_port_resource_for_instance(
78197813
context, instance, pci_reqs, request_groups)
78207814
provider_mappings, resources = result

0 commit comments

Comments
 (0)