From 4d01d54269609ca96a2f4e4e9893f3980447a67e Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Fri, 15 Feb 2019 09:46:02 -0600 Subject: [PATCH] update pci_passthrough template variables While it works as is, the output does not match nova docs. nova_pci_passthrough_whitelist: '{ "vendor_id": "10de", "product_id": "15f7" }' outputting passthrough_whitelist = "{ "vendor_id": "10de", "product_id": "15f7" }" instead of the following as expected passthrough_whitelist = { "vendor_id": "10de", "product_id": "15f7" } same thing happens with the alias lines. This hits all release back to at least pike. Change-Id: I5fc34689eb12e6bd9b4f8977f2b9eebe637f11ec --- templates/nova.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index a42ba135..8b52cab4 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -352,12 +352,12 @@ enabled_vgpu_types = {{ enabled_vgpu_types | join(',') }} [pci] {% if nova_pci_passthrough_whitelist %} # White list of PCI devices available to VMs. -passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}" +passthrough_whitelist = {{ nova_pci_passthrough_whitelist }} {% endif %} {% if nova_pci_alias %} # PCI Alias {% for item in nova_pci_alias %} -alias = "{{item}}" +alias = {{item}} {% endfor %} {% endif %} {% endif %}