When the PCI alias was getting translated to a PCI request,
all the white spaces were getting removed. So the pci_passthrough:alias
specified in the flavor never matched the device in pci_alias.
This patch fixes the bug by only stripping the white spaces
at the beginning or the end of the elements
Reviewed: https:/ /review. openstack. org/392077 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9b88e755d93 200811487d2f778 735869f8fe07af
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9b88e755d932008 11487d2f7787358 69f8fe07af
Author: zhaolihui <email address hidden>
Date: Tue Nov 1 16:09:04 2016 +0800
Fix pci_alias that include white spaces
When the PCI alias was getting translated to a PCI request, :alias
all the white spaces were getting removed. So the pci_passthrough
specified in the flavor never matched the device in pci_alias.
This patch fixes the bug by only stripping the white spaces
at the beginning or the end of the elements
Change-Id: I2888b03faf6c25 bcb6011db40100d 925972c2231
Closes-Bug: #1638200